mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +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
|
|
@ -978,7 +978,7 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
|
|||
// MovePositionBy does internally. (This codepath should really
|
||||
// be merged into the else below if we can.)
|
||||
nsMargin* computedOffsetProp =
|
||||
kidFrame->Properties().Get(nsIFrame::ComputedOffsetProperty());
|
||||
kidFrame->GetProperty(nsIFrame::ComputedOffsetProperty());
|
||||
// Bug 975644: a position:sticky kid can end up with a null
|
||||
// property value here.
|
||||
LogicalMargin computedOffsets(wm, computedOffsetProp ?
|
||||
|
|
@ -1417,16 +1417,14 @@ nsTableRowFrame::SetUnpaginatedBSize(nsPresContext* aPresContext,
|
|||
nscoord aValue)
|
||||
{
|
||||
NS_ASSERTION(!GetPrevInFlow(), "program error");
|
||||
// Get the property
|
||||
aPresContext->PropertyTable()->
|
||||
Set(this, RowUnpaginatedHeightProperty(), aValue);
|
||||
// Set the property
|
||||
SetProperty(RowUnpaginatedHeightProperty(), aValue);
|
||||
}
|
||||
|
||||
nscoord
|
||||
nsTableRowFrame::GetUnpaginatedBSize()
|
||||
{
|
||||
FrameProperties props = FirstInFlow()->Properties();
|
||||
return props.Get(RowUnpaginatedHeightProperty());
|
||||
return GetProperty(RowUnpaginatedHeightProperty());
|
||||
}
|
||||
|
||||
void nsTableRowFrame::SetContinuousBCBorderWidth(LogicalSide aForSide,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue