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

Side by Side Diff: LayoutTests/fast/css/next-sibling-changed.html

Issue 27217007: Merge 158839 "Reverse style resolution to avoid N^2 walk when bu..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1650/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../js/resources/js-test-pre.js"></script>
3 <body> 3 <body>
4 <div id="div1"></div> 4 <div id="div1"></div>
5 </body> 5 </body>
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 9
10 description("This test ensures we properly invalidate style when adding children affected by direct adjacent sibling selectors."); 10 description("This test ensures we properly invalidate style when adding children affected by direct adjacent sibling selectors.");
(...skipping 10 matching lines...) Expand all
21 21
22 // Recalc style with our test div not matching the selector 22 // Recalc style with our test div not matching the selector
23 document.defaultView.getComputedStyle(testDiv, "").color; 23 document.defaultView.getComputedStyle(testDiv, "").color;
24 24
25 var trigger = document.createElement('div'); 25 var trigger = document.createElement('div');
26 div1.insertBefore(trigger, div2); 26 div1.insertBefore(trigger, div2);
27 shouldBe('document.defaultView.getComputedStyle(testDiv).color', '"rgb(255, 0, 0 )"'); 27 shouldBe('document.defaultView.getComputedStyle(testDiv).color', '"rgb(255, 0, 0 )"');
28 28
29 </script> 29 </script>
30 <script src="../js/resources/js-test-post.js"></script> 30 <script src="../js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698