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

Side by Side Diff: LayoutTests/fast/css/invalidation/shadow-boundary-crossing.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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 4
5 <style> 5 <style>
6 .deep /deep/ .inside, 6 .deep /deep/ .inside,
7 .shallow .inside { 7 .shallow .inside {
8 padding: 0; 8 padding: 0;
9 } 9 }
10 </style> 10 </style>
(...skipping 11 matching lines...) Expand all
22 var childDiv = sandbox.appendChild(document.createElement("div")); 22 var childDiv = sandbox.appendChild(document.createElement("div"));
23 childDiv.className = "inside"; 23 childDiv.className = "inside";
24 var shadowDiv = sandboxRoot.appendChild(document.createElement("div")); 24 var shadowDiv = sandboxRoot.appendChild(document.createElement("div"));
25 shadowDiv.className = "inside"; 25 shadowDiv.className = "inside";
26 shadowDiv.createShadowRoot().innerHTML = "<div class=inside><content></conte nt></div>"; 26 shadowDiv.createShadowRoot().innerHTML = "<div class=inside><content></conte nt></div>";
27 } 27 }
28 28
29 getComputedStyle(sandbox).color; 29 getComputedStyle(sandbox).color;
30 sandbox.className = "shallow"; 30 sandbox.className = "shallow";
31 if (window.internals) 31 if (window.internals)
32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "11"); 32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "10");
33 sandbox.className = ""; 33 sandbox.className = "";
34 34
35 getComputedStyle(sandbox).color; 35 getComputedStyle(sandbox).color;
36 sandbox.className = "deep"; 36 sandbox.className = "deep";
37 if (window.internals) 37 if (window.internals)
38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "31"); 38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "30");
39 </script> 39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698