Bug 1195431 - Small refactoring to use conditionals consistently. r=tn

--HG--
extra : commitid : 70zviYNmOkz
This commit is contained in:
Kartikaya Gupta 2015-09-23 09:34:42 -04:00
parent 9a349f8ba7
commit d058a7e7fe

View File

@ -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);
}