| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <!-- This test case reproduces a bug that is hopefully solved by https://bugs.
webkit.org/show_bug.cgi?id=80641 | 4 <!-- This test case reproduces a bug that is hopefully solved by https://bugs.
webkit.org/show_bug.cgi?id=80641 |
| 5 | 5 |
| 6 In the bug, a div element begins as non-composited, and the repaintRect h
ad a | 6 In the bug, a div element begins as non-composited, and the repaintRect h
ad a |
| 7 correct non-zero offset because it paints into an ancestor container. Lat
er, the | 7 correct non-zero offset because it paints into an ancestor container. Lat
er, the |
| 8 layer becomes composited (in this case, because the layer is moved to ove
rlap | 8 layer becomes composited (in this case, because the layer is moved to ove
rlap |
| 9 another composited layer). Because the layer is now composited, the repai
ntRect | 9 another composited layer). Because the layer is now composited, the repai
ntRect |
| 10 should have been recomputed - in particular, the offset of the repaintRec
t should | 10 should have been recomputed - in particular, the offset of the repaintRec
t should |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 background-color: red; | 39 background-color: red; |
| 40 } | 40 } |
| 41 | 41 |
| 42 .shouldBeSeen { | 42 .shouldBeSeen { |
| 43 background-color: green; | 43 background-color: green; |
| 44 } | 44 } |
| 45 </style> | 45 </style> |
| 46 | 46 |
| 47 </head> | 47 </head> |
| 48 | 48 |
| 49 <script src="../../resources/run-after-layout-and-paint.js"></script> | 49 <script src="../../../resources/run-after-layout-and-paint.js"></script> |
| 50 | 50 |
| 51 <script> | 51 <script> |
| 52 if (window.testRunner) { | 52 if (window.testRunner) { |
| 53 testRunner.dumpAsTextWithPixelResults(); | 53 testRunner.dumpAsTextWithPixelResults(); |
| 54 testRunner.waitUntilDone(); | 54 testRunner.waitUntilDone(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 function changeDivPosition() { | 57 function changeDivPosition() { |
| 58 document.getElementById("scrolldiv").style.left="50px"; | 58 document.getElementById("scrolldiv").style.left="50px"; |
| 59 } | 59 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 <body onload="repaintTest()"> | 78 <body onload="repaintTest()"> |
| 79 <div class="composited box"></div> | 79 <div class="composited box"></div> |
| 80 <div id="scrolldiv"> | 80 <div id="scrolldiv"> |
| 81 <div class="shouldNotBeSeen box"></div> | 81 <div class="shouldNotBeSeen box"></div> |
| 82 <div class="shouldBeSeen box"></div> | 82 <div class="shouldBeSeen box"></div> |
| 83 </div> | 83 </div> |
| 84 </body> | 84 </body> |
| 85 | 85 |
| 86 </html> | 86 </html> |
| OLD | NEW |