Bug 1441713 - Skip SynchronizeForSnapshot in the case of 'reftest-no-flush'. r?dbaron
Since updateLayerTree flushes styles.
MozReview-Commit-ID: 22NtsRTYTZe
--- a/layout/tools/reftest/reftest-content.js
+++ b/layout/tools/reftest/reftest-content.js
@@ -1087,17 +1087,19 @@ function SynchronizeForSnapshot(flags)
gCurrentTestType == TYPE_LOAD ||
gCurrentTestType == TYPE_PRINT) {
// Script, load-only, and PDF-print tests do not need any snapshotting.
return;
}
if (flags & SYNC_ALLOW_DISABLE) {
var docElt = content.document.documentElement;
- if (docElt && docElt.hasAttribute("reftest-no-sync-layers")) {
+ if (docElt &&
+ (docElt.hasAttribute("reftest-no-sync-layers") ||
+ docElt.classList.contains("reftest-no-flush"))) {
LogInfo("Test file chose to skip SynchronizeForSnapshot");
return;
}
}
windowUtils().updateLayerTree();
// Setup async scroll offsets now, because any scrollable layers should