mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +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
|
|
@ -215,7 +215,7 @@ public:
|
|||
~AutoLineCursorSetup()
|
||||
{
|
||||
if (mOrigCursor) {
|
||||
mFrame->Properties().Set(LineCursorProperty(), mOrigCursor);
|
||||
mFrame->SetProperty(LineCursorProperty(), mOrigCursor);
|
||||
} else {
|
||||
mFrame->ClearLineCursor();
|
||||
}
|
||||
|
|
@ -416,7 +416,7 @@ protected:
|
|||
NS_DECLARE_FRAME_PROPERTY_WITHOUT_DTOR(LineCursorProperty, nsLineBox)
|
||||
bool HasLineCursor() { return GetStateBits() & NS_BLOCK_HAS_LINE_CURSOR; }
|
||||
nsLineBox* GetLineCursor() {
|
||||
return HasLineCursor() ? Properties().Get(LineCursorProperty()) : nullptr;
|
||||
return HasLineCursor() ? GetProperty(LineCursorProperty()) : nullptr;
|
||||
}
|
||||
|
||||
nsLineBox* NewLineBox(nsIFrame* aFrame, bool aIsBlock) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue