Bug 1559570 - Use a different style change to trigger AllReflowHints for now. r=kats
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 17 Jun 2019 01:48:24 +0000
changeset 479089 5c58b59524413e9cabe781105e2c48c6d8a6e463
parent 479088 c27a7183a60fb6bae193310f155477021932ec05
child 479090 2cd3642e09439146f04f8fa0df888a6c67151460
push id88058
push userealvarez@mozilla.com
push dateMon, 17 Jun 2019 01:59:37 +0000
treeherderautoland@5c58b5952441 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1559570
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1559570 - Use a different style change to trigger AllReflowHints for now. r=kats box-sizing changes seem a bit less likely to be optimized away in the near future... Differential Revision: https://phabricator.services.mozilla.com/D35161
gfx/layers/apz/test/mochitest/apz_test_utils.js
--- a/gfx/layers/apz/test/mochitest/apz_test_utils.js
+++ b/gfx/layers/apz/test/mochitest/apz_test_utils.js
@@ -444,17 +444,17 @@ async function waitUntilApzStable() {
 // the waitUntilApzStable() but before reading the compositor-side APZ test
 // data, because the test data for the content layers id only gets populated
 // on content layer tree updates *after* the root layer tree has a RefLayer
 // pointing to the contnet layer tree. waitUntilApzStable itself guarantees
 // that the root layer tree is pointing to the content layer tree, but does
 // not guarantee the subsequent paint; this function does that job.
 async function forceLayerTreeToCompositor() {
   // Modify a style property to force a layout flush
-  document.body.style.left = "1px";
+  document.body.style.boxSizing = "border-box";
   var utils = SpecialPowers.getDOMWindowUtils(window);
   if (!utils.isMozAfterPaintPending) {
     dump("Forcing a paint since none was pending already...\n");
     var testMode = utils.isTestControllingRefreshes;
     utils.advanceTimeAndRefresh(0);
     if (!testMode) {
       utils.restoreNormalRefresh();
     }