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

Side by Side Diff: LayoutTests/http/tests/accessibility/slow-document-load.html

Issue 219993002: Avoid calling markAncestorsWithChildNeedsStyleRecalc() constantly in childrenChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix accessibility test and causing recalcs on removal Created 6 years, 8 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 <head> 2 <head>
3 <title>Accessibility: slow document load</title> 3 <title>Accessibility: slow document load</title>
4 <script src="/js-test-resources/js-test.js"></script> 4 <script src="/js-test-resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 if (notification == "LoadComplete") { 26 if (notification == "LoadComplete") {
27 accessibilityController.removeNotificationListener(); 27 accessibilityController.removeNotificationListener();
28 shouldBeGreaterThanOrEqual("elapsedTime", "1000"); 28 shouldBeGreaterThanOrEqual("elapsedTime", "1000");
29 shouldBeTrue("gotLayoutCompleteBeforeOneSecond"); 29 shouldBeTrue("gotLayoutCompleteBeforeOneSecond");
30 finishJSTest(); 30 finishJSTest();
31 } 31 }
32 }); 32 });
33 } 33 }
34
35 setTimeout(function() {
36 // Cause an incremental layout.
37 document.body.offsetTop;
38 }, 10);
34 </script> 39 </script>
35 40
36 <!-- This is a cgi script that waits 1 second before loading. --> 41 <!-- This is a cgi script that waits 1 second before loading. -->
37 <script src="slow-loading-script.cgi"></script> 42 <script src="slow-loading-script.cgi"></script>
38 43
39 </body> 44 </body>
40 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698