Index: third_party/WebKit/LayoutTests/fast/css/modify-stylesheet-minimal-recalc-style.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/modify-stylesheet-minimal-recalc-style.html b/third_party/WebKit/LayoutTests/fast/css/modify-stylesheet-minimal-recalc-style.html |
index f8b755fb0ade60afa9997f3fb217d1dc227faddf..40814c59175bf4f780e1183fbe7436752fbac9a4 100644 |
--- a/third_party/WebKit/LayoutTests/fast/css/modify-stylesheet-minimal-recalc-style.html |
+++ b/third_party/WebKit/LayoutTests/fast/css/modify-stylesheet-minimal-recalc-style.html |
@@ -56,7 +56,8 @@ |
// Test deleteRule |
forceRecalc(); |
sheet.sheet.deleteRule(0); // Deletes .bar rule. |
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6"); |
+ // FIXME: Ideally we'd do StyleInvalidationAnalysis here and only recalc 3 bar's, 3 baz's + documentElement |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "43"); |
shouldBe("getComputedStyle(document.querySelector('.foo')).color", '"rgb(0, 0, 0)"'); |
shouldBe("getComputedStyle(document.querySelector('.baz')).color", '"rgb(255, 0, 0)"'); |
@@ -65,7 +66,8 @@ |
// Test insertRule |
forceRecalc(); |
sheet.sheet.insertRule(".foo { color: red; }", 0); |
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6"); |
+ // FIXME: Ideally we'd do StyleInvalidationAnalysis here and only recalc 3 foo's, 3 baz's + documentElement |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "59"); |
shouldBe("getComputedStyle(document.querySelector('.foo')).color", '"rgb(255, 0, 0)"'); |
shouldBe("getComputedStyle(document.querySelector('.baz')).color", '"rgb(255, 0, 0)"'); |