Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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> |
| OLD | NEW |