зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452800 - Trigger a layout flush in forceLayerTreeToCompositor. r=kats
This ensures we don't take the early-exit codepath introduced by the PAINT_IDENTICAL_DISPLAY_LIST check, which breaks the behaviour desired by forceLayerTreeToCompositor. MozReview-Commit-ID: ECe6d0ZHZzt --HG-- extra : rebase_source : 48d3f7d9b5df81ba165c0e52d1a7b78909c58774
This commit is contained in:
Родитель
1f4fe4c185
Коммит
474ef54378
|
@ -359,7 +359,7 @@ async function forceLayerTreeToCompositor() {
|
|||
utils.restoreNormalRefresh();
|
||||
}
|
||||
}
|
||||
await promiseAllPaintsDone();
|
||||
await promiseAllPaintsDone(null, true);
|
||||
await promiseApzRepaintsFlushed();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1151663
|
|||
var SimpleTest = window.opener.SimpleTest;
|
||||
var utils = SpecialPowers.getDOMWindowUtils(window);
|
||||
|
||||
function flushLayout() {
|
||||
document.body.style.left = "1px";
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// The actual logic for testing bug 1151663.
|
||||
//
|
||||
|
@ -54,7 +58,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1151663
|
|||
window.opener.finishTest();
|
||||
}
|
||||
|
||||
waitUntilApzStable().then(forceLayerTreeToCompositor).then(testBug1151663);
|
||||
waitUntilApzStable().then(flushLayout).then(forceLayerTreeToCompositor).then(testBug1151663);
|
||||
</script>
|
||||
</head>
|
||||
<body style="height: 500px; overflow: scroll">
|
||||
|
|
Загрузка…
Ссылка в новой задаче