Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html

Issue 562403002: Remove TargetedStyleRecalc runtime flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't use the runtime flag in tests Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-style-invalidation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html
diff --git a/LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html b/LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html
index 7ffb6044c5a3e40c618720cdb39277c6adf6a825..cbf93f25445e35a58d889a3d84305dd9889f1c51 100644
--- a/LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html
+++ b/LayoutTests/fast/css/invalidation/targeted-attribute-style-invalidation.html
@@ -41,47 +41,26 @@ var inner = document.getElementById('inner');
var outer2 = document.getElementById('outer2');
var outer3 = document.getElementById('outer3');
-var count;
-if (internals && internals.runtimeFlags.targetedStyleRecalcEnabled)
- count = 2;
-else
- count = 5;
-
// Style recalc should happen on "inner" and "outer", but not "inner2" or "mid".
outer.offsetTop;
outer.setAttribute('outer', '1');
-shouldBe("internals.updateStyleAndReturnAffectedElementCount()", '' + count);
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
shouldBe("getComputedStyle(inner).width", '"200px"');
-if (internals.runtimeFlags.targetedStyleRecalcEnabled)
- count = 1;
-else
- count = 2;
-
// Style recalc should happen on "inner", but not "innerChild".
inner.offsetTop;
inner.removeAttribute('inner');
-shouldBe("internals.updateStyleAndReturnAffectedElementCount()", '' + count);
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
shouldBe("getComputedStyle(inner).width", '"100px"');
-if (internals.runtimeFlags.targetedStyleRecalcEnabled)
- count = 1;
-else
- count = 2;
-
// Style recalc should happen on "outer2", but not "inner3".
outer2.offsetTop;
outer2.setAttribute('outer', '2');
-shouldBe("internals.updateStyleAndReturnAffectedElementCount()", '' + count);
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
shouldBe("getComputedStyle(outer2).width", '"150px"');
-if (internals.runtimeFlags.targetedStyleRecalcEnabled)
- count = 1;
-else
- count = 3;
-
// Style recalc should happen on "outer3", but none of its children.
outer3.offsetTop;
outer3.setAttribute('outer', '3');
-shouldBe("internals.updateStyleAndReturnAffectedElementCount()", '' + count);
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-style-invalidation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698