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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/squash-transform-repainting-child.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 <head> 2 <head>
3 <script src="../../resources/run-after-layout-and-paint.js"></script> 3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4 <style> 4 <style>
5 .composited { 5 .composited {
6 transform: translatez(0); 6 transform: translatez(0);
7 } 7 }
8 8
9 .box { 9 .box {
10 width: 100px; 10 width: 100px;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 function runTest() 63 function runTest()
64 { 64 {
65 runAfterLayoutAndPaint(executeTestCases); 65 runAfterLayoutAndPaint(executeTestCases);
66 } 66 }
67 67
68 function executeTestCases() 68 function executeTestCases()
69 { 69 {
70 window.internals.startTrackingRepaints(document); 70 window.internals.startTrackingRepaints(document);
71 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 71 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
72 window.internals.stopTrackingRepaints(document); 72 window.internals.stopTrackingRepaints(document);
73 73
74 eventSender.mouseMoveTo(0, 0); 74 eventSender.mouseMoveTo(0, 0);
75 window.internals.startTrackingRepaints(document); 75 window.internals.startTrackingRepaints(document);
76 hoverOverOuterDiv(); 76 hoverOverOuterDiv();
77 document.getElementById('Case2').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 77 document.getElementById('Case2').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
78 window.internals.stopTrackingRepaints(document); 78 window.internals.stopTrackingRepaints(document);
79 79
80 eventSender.mouseMoveTo(0, 0); 80 eventSender.mouseMoveTo(0, 0);
81 window.internals.startTrackingRepaints(document); 81 window.internals.startTrackingRepaints(document);
82 hoverOverInnerDiv(); 82 hoverOverInnerDiv();
83 document.getElementById('Case3').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 83 document.getElementById('Case3').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
84 window.internals.stopTrackingRepaints(document); 84 window.internals.stopTrackingRepaints(document);
85 85
86 // Display the test results only after test is done so that it does not affect repaint rect results. 86 // Display the test results only after test is done so that it does not affect repaint rect results.
87 document.getElementById('testResults').style.display = "block"; 87 document.getElementById('testResults').style.display = "block";
88 88
89 if (window.testRunner) 89 if (window.testRunner)
90 testRunner.notifyDone(); 90 testRunner.notifyDone();
91 } 91 }
92 92
93 function hoverOverOuterDiv() 93 function hoverOverOuterDiv()
(...skipping 24 matching lines...) Expand all
118 CASE 1, original layer tree 118 CASE 1, original layer tree
119 <pre id="Case1"></pre> 119 <pre id="Case1"></pre>
120 120
121 CASE 2, hovering over the outer div 121 CASE 2, hovering over the outer div
122 <pre id="Case2"></pre> 122 <pre id="Case2"></pre>
123 123
124 CASE 3, hovering over the inner div 124 CASE 3, hovering over the inner div
125 <pre id="Case3"></pre> 125 <pre id="Case3"></pre>
126 </div> 126 </div>
127 </body> 127 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698