mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1195431 - Small refactoring to use conditionals consistently. r=tn
--HG-- extra : commitid : 70zviYNmOkz
This commit is contained in:
parent
9a349f8ba7
commit
d058a7e7fe
@ -3114,7 +3114,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
bool usingDisplayPort = false;
|
||||
nsRect displayport;
|
||||
if (rootScrollFrame && !aFrame->GetParent() &&
|
||||
(aFlags & (PAINT_WIDGET_LAYERS | PAINT_TO_WINDOW)) &&
|
||||
builder.IsPaintingToWindow() &&
|
||||
gfxPrefs::LayoutUseContainersForRootFrames()) {
|
||||
nsRect displayportBase(
|
||||
nsPoint(0,0),
|
||||
@ -3124,7 +3124,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
}
|
||||
|
||||
nsDisplayList hoistedScrollItemStorage;
|
||||
if (aFlags & (PAINT_WIDGET_LAYERS | PAINT_TO_WINDOW)) {
|
||||
if (builder.IsPaintingToWindow()) {
|
||||
builder.SetCommittedScrollInfoItemList(&hoistedScrollItemStorage);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user