OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 #test1 div { | 4 #test1 div { |
5 height: 100px; | 5 height: 100px; |
6 width: 100px; | 6 width: 100px; |
7 } | 7 } |
8 #test1 .parent { | 8 #test1 .parent { |
9 background-image: url(resources/animated.gif) | 9 background-image: url(resources/animated.gif) |
10 } | 10 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 </style> | 44 </style> |
45 <script> | 45 <script> |
46 // Test that obscured animated gif does not trigger repaints. | 46 // Test that obscured animated gif does not trigger repaints. |
47 if (window.testRunner) { | 47 if (window.testRunner) { |
48 testRunner.waitUntilDone(); | 48 testRunner.waitUntilDone(); |
49 testRunner.dumpAsText(); | 49 testRunner.dumpAsText(); |
50 } | 50 } |
51 | 51 |
52 if (window.internals) { | 52 if (window.internals) { |
53 internals.settings.setUseDefaultImageInterpolationQuality(true); | 53 internals.settings.setUseDefaultImageInterpolationQuality(true); |
54 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = t
rue; | 54 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true; |
55 } | 55 } |
56 | 56 |
57 function finish() { | 57 function finish() { |
58 var layerTree = window.internals.layerTreeAsText(document, internals.LAY
ER_TREE_INCLUDES_PAINT_INVALIDATIONS); | 58 var layerTree = window.internals.layerTreeAsText(document, internals.LAY
ER_TREE_INCLUDES_PAINT_INVALIDATIONS); |
59 var invalidations = JSON.parse(layerTree).objectPaintInvalidations; | 59 var invalidations = JSON.parse(layerTree).objectPaintInvalidations; |
60 // Passes if there is no invalidations other than imgForAdvanceImageAnim
ation, | 60 // Passes if there is no invalidations other than imgForAdvanceImageAnim
ation, |
61 // or only invalidations because of background obscuration change. | 61 // or only invalidations because of background obscuration change. |
62 // This is because before the delayed image decoder finishes decoding th
e image, | 62 // This is because before the delayed image decoder finishes decoding th
e image, |
63 // we first assume the image is not opaque. If the image is found actual
ly opaque | 63 // we first assume the image is not opaque. If the image is found actual
ly opaque |
64 // after decoding, the background obscuration status of covered elements
will | 64 // after decoding, the background obscuration status of covered elements
will |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 <div> | 125 <div> |
126 <img src="resources/apple.jpg"> | 126 <img src="resources/apple.jpg"> |
127 </div> | 127 </div> |
128 </a> | 128 </a> |
129 </div> | 129 </div> |
130 </div> | 130 </div> |
131 <img id="imgForAdvanceImageAnimation" src="resources/animated.gif"> | 131 <img id="imgForAdvanceImageAnimation" src="resources/animated.gif"> |
132 <pre id="output"></pre> | 132 <pre id="output"></pre> |
133 </body> | 133 </body> |
134 </html> | 134 </html> |
OLD | NEW |