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

Unified Diff: LayoutTests/fast/css/invalidation/targeted-class-host-context.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-host-context.html
diff --git a/LayoutTests/fast/css/invalidation/targeted-class-host-context.html b/LayoutTests/fast/css/invalidation/targeted-class-host-context.html
index df38980fdd374944bf40f43d5fca9e77c53a83e5..c1eb0bd89e96420eecb99384762cd45cb1b2ec61 100644
--- a/LayoutTests/fast/css/invalidation/targeted-class-host-context.html
+++ b/LayoutTests/fast/css/invalidation/targeted-class-host-context.html
@@ -38,7 +38,7 @@ test(function(){
assert_equals(getComputedStyle(inner, "").backgroundColor, transparent, "Background color before class change.");
t2.className = "t2";
if (window.internals)
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Element recalc count on class change.");
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "Element recalc count on class change.");
assert_equals(getComputedStyle(inner, "").backgroundColor, green, "Background color after class change.");
}, "Matching id descendant of :host-context with class.");

Powered by Google App Engine
This is Rietveld 408576698