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
|
|
@ -293,13 +293,13 @@ protected:
|
|||
if (!prevCont &&
|
||||
(aFrame->GetStateBits() & NS_FRAME_PART_OF_IBSPLIT)) {
|
||||
nsIFrame* block =
|
||||
aFrame->Properties().Get(nsIFrame::IBSplitPrevSibling());
|
||||
aFrame->GetProperty(nsIFrame::IBSplitPrevSibling());
|
||||
if (block) {
|
||||
// The {ib} properties are only stored on first continuations
|
||||
NS_ASSERTION(!block->GetPrevContinuation(),
|
||||
"Incorrect value for IBSplitPrevSibling");
|
||||
prevCont =
|
||||
block->Properties().Get(nsIFrame::IBSplitPrevSibling());
|
||||
block->GetProperty(nsIFrame::IBSplitPrevSibling());
|
||||
NS_ASSERTION(prevCont, "How did that happen?");
|
||||
}
|
||||
}
|
||||
|
|
@ -313,9 +313,9 @@ protected:
|
|||
(aFrame->GetStateBits() & NS_FRAME_PART_OF_IBSPLIT)) {
|
||||
// The {ib} properties are only stored on first continuations
|
||||
aFrame = aFrame->FirstContinuation();
|
||||
nsIFrame* block = aFrame->Properties().Get(nsIFrame::IBSplitSibling());
|
||||
nsIFrame* block = aFrame->GetProperty(nsIFrame::IBSplitSibling());
|
||||
if (block) {
|
||||
nextCont = block->Properties().Get(nsIFrame::IBSplitSibling());
|
||||
nextCont = block->GetProperty(nsIFrame::IBSplitSibling());
|
||||
NS_ASSERTION(nextCont, "How did that happen?");
|
||||
}
|
||||
}
|
||||
|
|
@ -842,7 +842,7 @@ static nsRect
|
|||
GetOutlineInnerRect(nsIFrame* aFrame)
|
||||
{
|
||||
nsRect* savedOutlineInnerRect =
|
||||
aFrame->Properties().Get(nsIFrame::OutlineInnerRectProperty());
|
||||
aFrame->GetProperty(nsIFrame::OutlineInnerRectProperty());
|
||||
if (savedOutlineInnerRect)
|
||||
return *savedOutlineInnerRect;
|
||||
NS_NOTREACHED("we should have saved a frame property");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue