Index: LayoutTests/fast/css/invalidation/targeted-id-style-invalidation.html |
diff --git a/LayoutTests/fast/css/invalidation/targeted-id-style-invalidation.html b/LayoutTests/fast/css/invalidation/targeted-id-style-invalidation.html |
index 4b822e3df75e1356d5bc283ea888e67e354b34d8..17d848cfd16b90e908a748aecd1de1bad40d8d60 100644 |
--- a/LayoutTests/fast/css/invalidation/targeted-id-style-invalidation.html |
+++ b/LayoutTests/fast/css/invalidation/targeted-id-style-invalidation.html |
@@ -41,47 +41,26 @@ var inner = document.getElementById('inner1on'); |
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.id = 'outer1on'; |
-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.id = ''; |
-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.id = 'outer2on'; |
-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.id = 'outer3on'; |
-shouldBe("internals.updateStyleAndReturnAffectedElementCount()", '' + count); |
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
</script> |