OLD | NEW |
1 <!-- Based on fast/repaint/horizontal-bt-overflow-same.html --> | 1 <!-- Based on fast/repaint/horizontal-bt-overflow-same.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html><head> | 3 <html><head> |
4 <style> | 4 <style> |
5 .container { | 5 .container { |
6 margin: 20px; | 6 margin: 20px; |
7 width: 300px; | 7 width: 300px; |
8 height: 200px; | 8 height: 200px; |
9 border: 1px solid black; | 9 border: 1px solid black; |
10 overflow: scroll; | 10 overflow: scroll; |
(...skipping 16 matching lines...) Expand all Loading... |
27 <body> | 27 <body> |
28 <div class="horizontal-bt container"> | 28 <div class="horizontal-bt container"> |
29 <div class="offset"></div> | 29 <div class="offset"></div> |
30 <div class="target"></div> | 30 <div class="target"></div> |
31 </div> | 31 </div> |
32 An orange rect should be painted.<br/> | 32 An orange rect should be painted.<br/> |
33 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca
re how many times is the log dumpped. | 33 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca
re how many times is the log dumpped. |
34 <script src="../../../fast/repaint/../../resources/run-after-layout-and-pain
t.js"></script> | 34 <script src="../../../fast/repaint/../../resources/run-after-layout-and-pain
t.js"></script> |
35 <script src="resources/paint-invalidation-test.js"></script> | 35 <script src="resources/paint-invalidation-test.js"></script> |
36 <script> | 36 <script> |
37 window.expectedPaintInvalidationObjects = [ | |
38 "LayoutBlockFlow DIV class='target'", | |
39 ]; | |
40 function paintInvalidationTest() { | 37 function paintInvalidationTest() { |
41 var target = document.getElementsByClassName("target")[0]; | 38 var target = document.getElementsByClassName("target")[0]; |
42 target.style.visibility = "visible"; | 39 target.style.visibility = "visible"; |
43 }; | 40 }; |
44 var container = document.getElementsByClassName("container")[0]; | 41 var container = document.getElementsByClassName("container")[0]; |
45 runAfterLayoutAndPaint(function() { | 42 runAfterLayoutAndPaint(function() { |
46 container.scrollTop = 0; | 43 container.scrollTop = 0; |
47 runPaintInvalidationTest(); | 44 runPaintInvalidationTest(); |
48 }); | 45 }); |
49 </script> | 46 </script> |
50 </body></html> | 47 </body></html> |
OLD | NEW |