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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-style-recalc-with-invalidator-invalidations.html

Issue 946993002: Avoid style invalidation for empty sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added dummy selectors to tests to force descendant invalidation Created 5 years, 10 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/timeline-test.js"></script> 5 <script src="../../http/tests/inspector/timeline-test.js"></script>
6 <script> 6 <script>
7 function changeStylesAndDisplay(callback) 7 function changeStylesAndDisplay(callback)
8 { 8 {
9 requestAnimationFrame(function() { 9 requestAnimationFrame(function() {
10 document.getElementById("testElementOne").className = "red"; 10 document.getElementById("testElementOne").className = "red";
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 }); 102 });
103 } 103 }
104 ]); 104 ]);
105 } 105 }
106 </script> 106 </script>
107 <style> 107 <style>
108 .testHolder > .red { background-color: red; } 108 .testHolder > .red { background-color: red; }
109 .testHolder > .green { background-color: green; } 109 .testHolder > .green { background-color: green; }
110 .testHolder > .blue { background-color: blue; } 110 .testHolder > .blue { background-color: blue; }
111 .testHolder > .snow { background-color: snow; } 111 .testHolder > .snow { background-color: snow; }
112 .testHolder > .red .dummy { }
113 .testHolder > .green .dummy { }
114 .testHolder > .blue .dummy { }
115 .testHolder > .snow .dummy { }
112 </style> 116 </style>
113 </head> 117 </head>
114 <body onload="runTest()"> 118 <body onload="runTest()">
115 <p>Tests the Timeline API instrumentation of style recalc events with invalidati ons.</p> 119 <p>Tests the Timeline API instrumentation of style recalc events with invalidati ons.</p>
116 <div class="testHolder"> 120 <div class="testHolder">
117 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div> 121 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div>
118 </div> 122 </div>
119 <iframe src="resources/timeline-iframe-with-style.html" style="position: absolut e; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> 123 <iframe src="resources/timeline-iframe-with-style.html" style="position: absolut e; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
120 </body> 124 </body>
121 </html> 125 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698