mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58: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
|
|
@ -300,7 +300,7 @@ nsDisplayCanvasBackgroundImage::Paint(nsDisplayListBuilder* aBuilder,
|
|||
// above.
|
||||
destRect.Round();
|
||||
RefPtr<DrawTarget> dt =
|
||||
Frame()->Properties().Get(nsIFrame::CachedBackgroundImageDT());
|
||||
Frame()->GetProperty(nsIFrame::CachedBackgroundImageDT());
|
||||
DrawTarget* destDT = dest->GetDrawTarget();
|
||||
if (dt) {
|
||||
BlitSurface(destDT, destRect, dt);
|
||||
|
|
@ -317,7 +317,7 @@ nsDisplayCanvasBackgroundImage::Paint(nsDisplayListBuilder* aBuilder,
|
|||
nsRenderingContext context(ctx);
|
||||
PaintInternal(aBuilder, &context, bgClipRect, &bgClipRect);
|
||||
BlitSurface(dest->GetDrawTarget(), destRect, dt);
|
||||
frame->Properties().Set(nsIFrame::CachedBackgroundImageDT(),
|
||||
frame->SetProperty(nsIFrame::CachedBackgroundImageDT(),
|
||||
dt.forget().take());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue