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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/reattach-with-sibling-invalidation.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 .b { color: red } 4 .b { color: red }
5 .a + div .b { color: green } 5 .a + div .b { color: green }
6 </style> 6 </style>
7 <input type="text"></input> 7 <input type="text"></input>
8 <div> 8 <div>
9 <span class="b">Should be green</span> 9 <span class="b">Should be green</span>
10 <span></span> 10 <span></span>
(...skipping 11 matching lines...) Expand all
22 input.offsetTop; 22 input.offsetTop;
23 23
24 // Schedule sibling invalidation set to invalidate span.b 24 // Schedule sibling invalidation set to invalidate span.b
25 input.className = "a"; 25 input.className = "a";
26 26
27 // Trigger lazyReattachIfAttached() -> detach(). 27 // Trigger lazyReattachIfAttached() -> detach().
28 document.querySelector("input").type = "button"; 28 document.querySelector("input").type = "button";
29 29
30 // One for attaching the input, and one for the span.b recalc. 30 // One for attaching the input, and one for the span.b recalc.
31 if (window.internals) 31 if (window.internals)
32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 32 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()" , "2");
33 33
34 shouldBeEqualToString("getComputedStyle(document.querySelector('.b')).color" , "rgb(0, 128, 0)"); 34 shouldBeEqualToString("getComputedStyle(document.querySelector('.b')).color" , "rgb(0, 128, 0)");
35 </script> 35 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698