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

Side by Side Diff: LayoutTests/fast/css/invalidation/targeted-class-whole-subtree.html

Issue 317133002: Skip traversing wholeSubtree subtrees with clean invalidation bits. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issue. Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-whole-subtree-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 .b .c { background-color: pink }
5 .a * { background-color: green }
6 </style>
7 <div id="outer">
8 <div id="inner">
9 <div>
10 <div></div>
11 <div></div>
12 </div>
13 </div>
14 </div>
15 <script>
16 description("Check that all children of inner are recalculated.");
17
18 var transparent = "rgba(0, 0, 0, 0)";
19 var green = "rgb(0, 128, 0)";
20
21 var inner = document.getElementById("inner");
22 var outer = document.getElementById("outer");
23
24 var innerDivs = inner.querySelectorAll("div");
25
26 for (var i=0; i < innerDivs.length; i++)
27 shouldBe("getComputedStyle(innerDivs[i], null).backgroundColor", "transparen t");
28
29 document.body.offsetTop; // Force style recalc.
30
31 outer.className = "b";
32 inner.className = "a";
33
34 if (window.internals)
35 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5");
36
37 for (var i=0; i < innerDivs.length; i++)
38 shouldBe("getComputedStyle(innerDivs[i], null).backgroundColor", "green");
39 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-whole-subtree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698