| OLD | NEW |
| 1 <!-- Based on fast/repaint/filter-repaint-on-accelerated-layer.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <style> | 3 <style> |
| 3 div { | 4 div { |
| 4 width: 200px; | 5 width: 200px; |
| 5 height: 200px; | 6 height: 200px; |
| 6 } | 7 } |
| 7 | 8 |
| 8 .blur { | 9 .blur { |
| 9 -webkit-filter: blur(10px); | 10 -webkit-filter: blur(10px); |
| 10 } | 11 } |
| 11 | 12 |
| 12 .accelerated { | 13 .accelerated { |
| 13 transform: translateZ(0); | 14 transform: translateZ(0); |
| 14 } | 15 } |
| 15 | 16 |
| 16 #resize { | 17 #resize { |
| 17 background-color: green; | 18 background-color: green; |
| 18 } | 19 } |
| 19 </style> | 20 </style> |
| 20 | 21 |
| 21 <div class="blur"> | 22 <div class="blur"> |
| 22 <div class="accelerated" id="resize"></div> | 23 <div class="accelerated" id="resize"></div> |
| 23 </div> | 24 </div> |
| 24 | 25 |
| 25 <script src="resources/text-based-repaint.js"></script> | 26 <script src="resources/paint-invalidation-test.js"></script> |
| 26 <script> | 27 <script> |
| 27 function repaintTest() { | 28 window.expectedPaintInvalidationObjects = [ |
| 29 "LayoutBlockFlow DIV id='resize' class='accelerated'", |
| 30 ]; |
| 31 function paintInvalidationTest() { |
| 28 var resizeElement = document.getElementById("resize"); | 32 var resizeElement = document.getElementById("resize"); |
| 29 resizeElement.style.width = "100px"; | 33 resizeElement.style.width = "100px"; |
| 30 } | 34 } |
| 31 window.onload = runRepaintTest; | 35 window.onload = runPaintInvalidationTest; |
| 32 </script> | 36 </script> |
| OLD | NEW |