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

Unified Diff: LayoutTests/media/track/cue-style-invalidation.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/media/track/cue-style-invalidation.html
diff --git a/LayoutTests/media/track/cue-style-invalidation.html b/LayoutTests/media/track/cue-style-invalidation.html
index 3998324630178374959def92ef926db6a0d73c1a..69961228469059dadac4c66b29eee700cbbafa16 100644
--- a/LayoutTests/media/track/cue-style-invalidation.html
+++ b/LayoutTests/media/track/cue-style-invalidation.html
@@ -31,28 +31,28 @@ function seeked() {
ascendant.offsetTop;
ascendant.classList.add("cue");
if (window.internals)
- testExpected("internals.updateStyleAndReturnAffectedElementCount()", 9);
+ testExpected("internals.updateStyleAndReturnAffectedElementCount()", 8);
testExpected("getComputedStyle(cueNode).backgroundColor", green);
testExpected("getComputedStyle(cNode).backgroundColor", red);
ascendant.offsetTop;
ascendant.classList.add("cuefunc");
if (window.internals)
- testExpected("internals.updateStyleAndReturnAffectedElementCount()", 2);
+ testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1);
testExpected("getComputedStyle(cNode).backgroundColor", green);
testExpected("getComputedStyle(iNode).backgroundColor", red);
ascendant.offsetTop;
ascendant.classList.add("past");
if (window.internals)
- testExpected("internals.updateStyleAndReturnAffectedElementCount()", 2);
+ testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1);
testExpected("getComputedStyle(iNode).backgroundColor", green);
testExpected("getComputedStyle(bNode).backgroundColor", red);
ascendant.offsetTop;
ascendant.classList.add("future");
if (window.internals)
- testExpected("internals.updateStyleAndReturnAffectedElementCount()", 2);
+ testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1);
testExpected("getComputedStyle(bNode).backgroundColor", green);
endTest();
« no previous file with comments | « LayoutTests/fast/layout/display-none-no-relayout.html ('k') | LayoutTests/media/track/cue-style-invalidation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698