mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-10 01:07: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
|
|
@ -1060,10 +1060,9 @@ nsSVGUtils::GetBBox(nsIFrame *aFrame, uint32_t aFlags)
|
|||
return bbox;
|
||||
}
|
||||
|
||||
FrameProperties props = aFrame->Properties();
|
||||
|
||||
if (aFlags == eBBoxIncludeFillGeometry) {
|
||||
gfxRect* prop = props.Get(ObjectBoundingBoxProperty());
|
||||
gfxRect* prop = aFrame->GetProperty(ObjectBoundingBoxProperty());
|
||||
if (prop) {
|
||||
return *prop;
|
||||
}
|
||||
|
|
@ -1139,7 +1138,7 @@ nsSVGUtils::GetBBox(nsIFrame *aFrame, uint32_t aFlags)
|
|||
if (aFlags == eBBoxIncludeFillGeometry) {
|
||||
// Obtaining the bbox for objectBoundingBox calculations is common so we
|
||||
// cache the result for future calls, since calculation can be expensive:
|
||||
props.Set(ObjectBoundingBoxProperty(), new gfxRect(bbox));
|
||||
aFrame->SetProperty(ObjectBoundingBoxProperty(), new gfxRect(bbox));
|
||||
}
|
||||
|
||||
return bbox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue