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

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

Issue 46163008: Revert "Re-land deferred compositing updates with fixed assumptions" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 53
54 predecessor.style.zIndex = '5'; 54 predecessor.style.zIndex = '5';
55 window.internals.forceCompositingUpdate(document);
56 55
57 var pass = true; 56 var pass = true;
58 if (!didOptIn(container)) { 57 if (!didOptIn(container)) {
59 pass = false; 58 pass = false;
60 write('FAIL - did not opt in when our children are contiguous.') ; 59 write('FAIL - did not opt in when our children are contiguous.') ;
61 } 60 }
62 61
63 predecessor.style.zIndex = ''; 62 predecessor.style.zIndex = '';
64 window.internals.forceCompositingUpdate(document);
65 63
66 if (didOptIn(container)) { 64 if (didOptIn(container)) {
67 pass = false; 65 pass = false;
68 write('FAIL - opted in when our children are not contiguous.'); 66 write('FAIL - opted in when our children are not contiguous.');
69 } 67 }
70 68
71 if (pass) 69 if (pass)
72 write('PASS'); 70 write('PASS');
73 } 71 }
74 72
75 window.addEventListener('load', doTest, false); 73 window.addEventListener('load', doTest, false);
76 </script> 74 </script>
77 </head> 75 </head>
78 76
79 <body> 77 <body>
80 <div> 78 <div>
81 <div class='positioned' id='predecessor'></div> 79 <div class='positioned' id='predecessor'></div>
82 <div id='container'> 80 <div id='container'>
83 <div class='scrolled'></div> 81 <div class='scrolled'></div>
84 </div> 82 </div>
85 </div> 83 </div>
86 <pre id='console'></pre> 84 <pre id='console'></pre>
87 </body> 85 </body>
88 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698