Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html

Issue 2299223002: Compile under-invalidation checking in all builds (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698