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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/squash-above-fixed-2.html

Issue 1880763002: Merge repaintRects and paintInvalidationObjects in text-based-repaint test results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html id="htmlTag"> 2 <html id="htmlTag">
3 3
4 <head> 4 <head>
5 <script src="../../resources/run-after-layout-and-paint.js"></script> 5 <script src="../../resources/run-after-layout-and-paint.js"></script>
6 <style> 6 <style>
7 #fixed { 7 #fixed {
8 -webkit-backface-visibility: hidden; 8 -webkit-backface-visibility: hidden;
9 position: fixed; 9 position: fixed;
10 z-index: 1; 10 z-index: 1;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 function runTest() 56 function runTest()
57 { 57 {
58 if (!window.internals) 58 if (!window.internals)
59 return; 59 return;
60 60
61 // Display the test results only after test is done so that it does not affect repaint rect results. 61 // Display the test results only after test is done so that it does not affect repaint rect results.
62 document.getElementById('testResults').style.display = "block"; 62 document.getElementById('testResults').style.display = "block";
63 // Case 1 63 // Case 1
64 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 64 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
65 65
66 // Case 2 66 // Case 2
67 window.scrollTo(0, 80); 67 window.scrollTo(0, 80);
68 runAfterLayoutAndPaint(function() { 68 runAfterLayoutAndPaint(function() {
69 document.getElementById('Case2').textContent = window.internals.layerT reeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 69 document.getElementById('Case2').textContent = window.internals.layerT reeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
70 if (window.testRunner) { 70 if (window.testRunner) {
71 testRunner.notifyDone(); 71 testRunner.notifyDone();
72 } 72 }
73 }); 73 });
74 } 74 }
75 </script> 75 </script>
76 </head> 76 </head>
77 77
78 <body onload="runTest()"> 78 <body onload="runTest()">
79 <div id="description"> 79 <div id="description">
(...skipping 14 matching lines...) Expand all
94 <div id="testResults"> 94 <div id="testResults">
95 CASE 1, original layer tree: 95 CASE 1, original layer tree:
96 <pre id="Case1"></pre> 96 <pre id="Case1"></pre>
97 97
98 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position: 98 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position:
99 <pre id="Case2"></pre> 99 <pre id="Case2"></pre>
100 </div> 100 </div>
101 101
102 </body> 102 </body>
103 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698