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

Side by Side Diff: LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling-after-sibling-display-change.html

Issue 30383002: Merge 159961 "Defer the real work in updateCompositingLayers unt..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1675/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 #container { 6 #container {
7 width: 200px; 7 width: 200px;
8 height: 200px; 8 height: 200px;
9 overflow: scroll; 9 overflow: scroll;
10 margin: 20px; 10 margin: 20px;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 function doTest() 46 function doTest()
47 { 47 {
48 if (!window.internals) 48 if (!window.internals)
49 return; 49 return;
50 50
51 var predecessor = document.getElementById('predecessor'); 51 var predecessor = document.getElementById('predecessor');
52 var container = document.getElementById('container'); 52 var container = document.getElementById('container');
53 predecessor.style.display = 'none'; 53 predecessor.style.display = 'none';
54 window.internals.forceCompositingUpdate(document);
54 55
55 var pass = true; 56 var pass = true;
56 if (!didOptIn(container)) { 57 if (!didOptIn(container)) {
57 pass = false; 58 pass = false;
58 write('FAIL - did not opt in when our children are contiguous.') ; 59 write('FAIL - did not opt in when our children are contiguous.') ;
59 } 60 }
60 61
61 predecessor.style.display = ''; 62 predecessor.style.display = '';
63 window.internals.forceCompositingUpdate(document);
62 64
63 if (didOptIn(container)) { 65 if (didOptIn(container)) {
64 pass = false; 66 pass = false;
65 write('FAIL - opted in when our children are not contiguous.'); 67 write('FAIL - opted in when our children are not contiguous.');
66 } 68 }
67 69
68 if (pass) 70 if (pass)
69 write('PASS'); 71 write('PASS');
70 } 72 }
71 73
72 window.addEventListener('load', doTest, false); 74 window.addEventListener('load', doTest, false);
73 </script> 75 </script>
74 </head> 76 </head>
75 77
76 <body> 78 <body>
77 <div> 79 <div>
78 <div class='positioned' id='predecessor'></div> 80 <div class='positioned' id='predecessor'></div>
79 <div id='container'> 81 <div id='container'>
80 <div class='scrolled'></div> 82 <div class='scrolled'></div>
81 </div> 83 </div>
82 </div> 84 </div>
83 <pre id='console'></pre> 85 <pre id='console'></pre>
84 </body> 86 </body>
85 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698