OLD | NEW |
| 1 <!-- Based on fast/repaint/vertical-overflow-same.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <html><head> | 3 <html><head> |
3 <style> | 4 <style> |
4 .container { | 5 .container { |
5 margin: 20px; | 6 margin: 20px; |
6 width: 300px; | 7 width: 300px; |
7 height: 200px; | 8 height: 200px; |
8 border: 1px solid black; | 9 border: 1px solid black; |
9 overflow: scroll; | 10 overflow: scroll; |
10 } | 11 } |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 24 } |
24 </style> | 25 </style> |
25 </head> | 26 </head> |
26 <body> | 27 <body> |
27 <div class="vertical-rl container"> | 28 <div class="vertical-rl container"> |
28 <div class="offset"></div> | 29 <div class="offset"></div> |
29 <div class="target"></div> | 30 <div class="target"></div> |
30 </div> | 31 </div> |
31 An orange rect should be painted.<br/> | 32 An orange rect should be painted.<br/> |
32 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. |
33 <script src="../../resources/run-after-layout-and-paint.js"></script> | 34 <script src="../../../fast/repaint/../../resources/run-after-layout-and-pain
t.js"></script> |
34 <script src="resources/text-based-repaint.js"></script> | 35 <script src="resources/paint-invalidation-test.js"></script> |
35 <script> | 36 <script> |
36 repaintTest = function() { | 37 window.expectedPaintInvalidationObjects = [ |
| 38 "LayoutBlockFlow DIV class='target'", |
| 39 ]; |
| 40 function paintInvalidationTest() { |
37 var target = document.getElementsByClassName("target")[0]; | 41 var target = document.getElementsByClassName("target")[0]; |
38 target.style.visibility = "visible"; | 42 target.style.visibility = "visible"; |
39 }; | 43 }; |
40 var container = document.getElementsByClassName("container")[0]; | 44 var container = document.getElementsByClassName("container")[0]; |
41 runAfterLayoutAndPaint(function() { | 45 runAfterLayoutAndPaint(function() { |
42 container.scrollLeft = 0; | 46 container.scrollLeft = 0; |
43 runRepaintTest(); | 47 runPaintInvalidationTest(); |
44 }); | 48 }); |
45 </script> | 49 </script> |
46 </body></html> | 50 </body></html> |
OLD | NEW |