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

Unified Diff: LayoutTests/fast/css/invalidation/targeted-class-id.html

Issue 1349543004: CSS: Avoid invalidating style when only descendants need updating (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: invalidatesSelf Created 5 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
Index: LayoutTests/fast/css/invalidation/targeted-class-id.html
diff --git a/LayoutTests/fast/css/invalidation/targeted-class-id.html b/LayoutTests/fast/css/invalidation/targeted-class-id.html
index 5847c10c5bfa5290ff644d3515546b9d67e48f39..2ee5af89cce5c0cda66b5fdde47bd9cf7ae5e55d 100644
--- a/LayoutTests/fast/css/invalidation/targeted-class-id.html
+++ b/LayoutTests/fast/css/invalidation/targeted-class-id.html
@@ -28,14 +28,14 @@ document.body.offsetTop; // Force style recalc.
document.getElementById("t1").className = "a1";
if (window.internals)
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
shouldBe("getComputedStyle(b1, null).backgroundColor", "green");
document.body.offsetLeft; // force style recalc.
document.getElementById("t2").className = "a2";
if (window.internals)
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
shouldBe("getComputedStyle(b2, null).backgroundColor", "green");
</script>

Powered by Google App Engine
This is Rietveld 408576698