From 0fd8259546de0c721e0022bd655afd522faf4ef1 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Sun, 10 Jan 2016 14:25:10 +0100 Subject: [PATCH] Bug 1234877 - Whether a scroll frame is async scrollable is determined by mWillBuildScrollableLayer, not by usingDisplayPort. r=tn --- layout/generic/nsGfxScrollFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 6513f041987..fd774da64ed 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -3111,7 +3111,7 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder, } DisplayListClipState::AutoSaveRestore clipStateForScrollClip(aBuilder); - if (usingDisplayPort) { + if (mWillBuildScrollableLayer) { if (mClipAllDescendants) { clipStateForScrollClip.TurnClipIntoScrollClipForContentDescendants(aBuilder, sf); } else { @@ -3140,7 +3140,7 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder, } DisplayListClipState::AutoSaveRestore clipStateForScrollClip(aBuilder); - if (usingDisplayPort) { + if (mWillBuildScrollableLayer) { if (mClipAllDescendants) { clipStateForScrollClip.TurnClipIntoScrollClipForContentDescendants(aBuilder, sf); } else {