mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07: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
|
|
@ -903,7 +903,7 @@ nsBulletFrame::GetFontSizeInflation() const
|
|||
if (!HasFontSizeInflation()) {
|
||||
return 1.0f;
|
||||
}
|
||||
return Properties().Get(FontSizeInflationProperty());
|
||||
return GetProperty(FontSizeInflationProperty());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -912,13 +912,13 @@ nsBulletFrame::SetFontSizeInflation(float aInflation)
|
|||
if (aInflation == 1.0f) {
|
||||
if (HasFontSizeInflation()) {
|
||||
RemoveStateBits(BULLET_FRAME_HAS_FONT_INFLATION);
|
||||
Properties().Delete(FontSizeInflationProperty());
|
||||
DeleteProperty(FontSizeInflationProperty());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
AddStateBits(BULLET_FRAME_HAS_FONT_INFLATION);
|
||||
Properties().Set(FontSizeInflationProperty(), aInflation);
|
||||
SetProperty(FontSizeInflationProperty(), aInflation);
|
||||
}
|
||||
|
||||
already_AddRefed<imgIContainer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue