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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/absolute-layer-specified-left-or-right-auto-width-moved-vertically.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 <script> 2 <script>
3 function test() 3 function test()
4 { 4 {
5 if (!window.testRunner || !window.internals) 5 if (!window.testRunner || !window.internals)
6 return; 6 return;
7 7
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 document.body.offsetTop; 9 document.body.offsetTop;
10 internals.startTrackingRepaints(document); 10 internals.startTrackingRepaints(document);
11 11
12 document.getElementById('left').style.top = '400px'; 12 document.getElementById('left').style.top = '400px';
13 document.getElementById('right').style.top = '400px'; 13 document.getElementById('right').style.top = '400px';
14 14
15 document.body.offsetTop; 15 document.body.offsetTop;
16 var layerTree = internals.layerTreeAsText(document, internals.LAYER_TREE_INC LUDES_REPAINT_RECTS); 16 var layerTree = internals.layerTreeAsText(document, internals.LAYER_TREE_INC LUDES_PAINT_INVALIDATIONS);
17 window.internals.stopTrackingRepaints(document); 17 window.internals.stopTrackingRepaints(document);
18 document.getElementById('result').textContent = layerTree.indexOf('repaint') == -1 ? 'SUCCESS' : 'FAIL'; 18 document.getElementById('result').textContent = layerTree.indexOf('repaint') == -1 ? 'SUCCESS' : 'FAIL';
19 } 19 }
20 20
21 window.onload = test; 21 window.onload = test;
22 </script> 22 </script>
23 23
24 <style> 24 <style>
25 #left, #right { 25 #left, #right {
26 position: absolute; 26 position: absolute;
27 top: 200px; 27 top: 200px;
28 -webkit-backface-visibility: hidden; 28 -webkit-backface-visibility: hidden;
29 } 29 }
30 #left { 30 #left {
31 left: 0px; 31 left: 0px;
32 } 32 }
33 #right { 33 #right {
34 right: 0px; 34 right: 0px;
35 } 35 }
36 </style> 36 </style>
37 37
38 There should be no repaint when the divs are moved vertically. 38 There should be no repaint when the divs are moved vertically.
39 <div id="left">Left</div> 39 <div id="left">Left</div>
40 <div id="right">Right</div> 40 <div id="right">Right</div>
41 <pre id="result"></pre> 41 <pre id="result"></pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698