mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
Attach FrameProperties to each frame instead of using a shared hashtable
Dispense the shared hashtable and instead attach the frame property list directly to nsIFrame.
This commit is contained in:
parent
c135831979
commit
922e819d1c
62 changed files with 738 additions and 945 deletions
|
|
@ -1910,7 +1910,7 @@ nsTableRowGroupFrame::ClearRowCursor()
|
|||
}
|
||||
|
||||
RemoveStateBits(NS_ROWGROUP_HAS_ROW_CURSOR);
|
||||
Properties().Delete(RowCursorProperty());
|
||||
DeleteProperty(RowCursorProperty());
|
||||
}
|
||||
|
||||
nsTableRowGroupFrame::FrameCursorData*
|
||||
|
|
@ -1934,7 +1934,7 @@ nsTableRowGroupFrame::SetupRowCursor()
|
|||
FrameCursorData* data = new FrameCursorData();
|
||||
if (!data)
|
||||
return nullptr;
|
||||
Properties().Set(RowCursorProperty(), data);
|
||||
SetProperty(RowCursorProperty(), data);
|
||||
AddStateBits(NS_ROWGROUP_HAS_ROW_CURSOR);
|
||||
return data;
|
||||
}
|
||||
|
|
@ -1946,7 +1946,7 @@ nsTableRowGroupFrame::GetFirstRowContaining(nscoord aY, nscoord* aOverflowAbove)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
FrameCursorData* property = Properties().Get(RowCursorProperty());
|
||||
FrameCursorData* property = GetProperty(RowCursorProperty());
|
||||
uint32_t cursorIndex = property->mCursorIndex;
|
||||
uint32_t frameCount = property->mFrames.Length();
|
||||
if (cursorIndex >= frameCount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue