Bug 1234877 - Whether a scroll frame is async scrollable is determined by mWillBuildScrollableLayer, not by usingDisplayPort. r=tn

This commit is contained in:
Markus Stange 2016-01-10 14:25:10 +01:00
parent 6b3c6b5139
commit 9a495ed086

View File

@ -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 {