From d058a7e7fe820d979ac3b9f26e83ff11501872c5 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Wed, 23 Sep 2015 09:34:42 -0400 Subject: [PATCH] Bug 1195431 - Small refactoring to use conditionals consistently. r=tn --HG-- extra : commitid : 70zviYNmOkz --- layout/base/nsLayoutUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 3a2a16269bb8..d977bc246e34 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -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); }