mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08: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
|
|
@ -19,21 +19,21 @@ NS_DECLARE_FRAME_PROPERTY_SMALL_VALUE(ReservedISize, nscoord)
|
|||
RubyUtils::SetReservedISize(nsIFrame* aFrame, nscoord aISize)
|
||||
{
|
||||
MOZ_ASSERT(IsExpandableRubyBox(aFrame));
|
||||
aFrame->Properties().Set(ReservedISize(), aISize);
|
||||
aFrame->SetProperty(ReservedISize(), aISize);
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
RubyUtils::ClearReservedISize(nsIFrame* aFrame)
|
||||
{
|
||||
MOZ_ASSERT(IsExpandableRubyBox(aFrame));
|
||||
aFrame->Properties().Remove(ReservedISize());
|
||||
aFrame->RemoveProperty(ReservedISize());
|
||||
}
|
||||
|
||||
/* static */ nscoord
|
||||
RubyUtils::GetReservedISize(nsIFrame* aFrame)
|
||||
{
|
||||
MOZ_ASSERT(IsExpandableRubyBox(aFrame));
|
||||
return aFrame->Properties().Get(ReservedISize());
|
||||
return aFrame->GetProperty(ReservedISize());
|
||||
}
|
||||
|
||||
AutoRubyTextContainerArray::AutoRubyTextContainerArray(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue