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

Side by Side Diff: LayoutTests/fast/layout/common-ancestor-relayout-boundary.html

Issue 927773002: Keep track of multiple layout roots (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix inspector tests 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 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <style> 3 <style>
4 /* Make all divs relayout boundaries. */ 4 /* Make all divs relayout boundaries. */
5 div { 5 div {
6 width: 100px; 6 width: 100px;
7 height: 100px; 7 height: 100px;
8 overflow: hidden; 8 overflow: hidden;
9 } 9 }
10 </style> 10 </style>
(...skipping 13 matching lines...) Expand all
24 24
25 document.documentElement.offsetTop; 25 document.documentElement.offsetTop;
26 26
27 // Pass quiet=true here so that the added nodes from the shouldBe don't 27 // Pass quiet=true here so that the added nodes from the shouldBe don't
28 // mess up the needsLayoutCount on line 45. 28 // mess up the needsLayoutCount on line 45.
29 if (window.internals) 29 if (window.internals)
30 shouldBe("window.internals.needsLayoutCount()", "0", true); 30 shouldBe("window.internals.needsLayoutCount()", "0", true);
31 31
32 dirtyLayout(); 32 dirtyLayout();
33 33
34 // FIXME: In theory we can restrict the layoutRoot in FrameView to the common
35 // ancestor container and this should only be 5 instead of 8.
36 if (window.internals) 34 if (window.internals)
37 shouldBe("window.internals.needsLayoutCount()", "8"); 35 shouldBe("window.internals.needsLayoutCount()", "4");
eae 2015/02/20 23:16:12 Shouldn't this be 5? Also, this really needs a com
38 36
39 document.documentElement.offsetTop; 37 document.documentElement.offsetTop;
40 38
41 if (window.internals) 39 if (window.internals)
42 shouldBe("window.internals.needsLayoutCount()", "0"); 40 shouldBe("window.internals.needsLayoutCount()", "0");
43 </script> 41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698