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

Side by Side Diff: LayoutTests/compositing/overflow/build-paint-order-list-where-opt-in-decisions-can-affect-each-other.html

Issue 14741004: NOT FOR REVIEW - Update comp-scrolling state at a well defined point in the pipeline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added annotations describing how this patch will be split. Created 7 years, 7 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><head> 3 <html><head>
4 <style> 4 <style>
5 .filler { 5 .filler {
6 background-color: #CC9900; 6 background-color: #CC9900;
7 border-style: solid; 7 border-style: solid;
8 border-width: 1px; 8 border-width: 1px;
9 width: 400px; 9 width: 400px;
10 height: 100px; 10 height: 100px;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // first force the element not to promote, then compute its paint and 107 // first force the element not to promote, then compute its paint and
108 // stacking order lists. We then force the element to opt in, and 108 // stacking order lists. We then force the element to opt in, and
109 // generate the paint and stacking order lists after opt-in. 109 // generate the paint and stacking order lists after opt-in.
110 // 110 //
111 // The paint order lists should exactly match the stacking order lists 111 // The paint order lists should exactly match the stacking order lists
112 // (modulo children that fall outside of the hit-testing area 112 // (modulo children that fall outside of the hit-testing area
113 // on-screen), both before and after promotion. 113 // on-screen), both before and after promotion.
114 parentscrollinglayer.style.webkitTransform = 'translateZ(0px)'; 114 parentscrollinglayer.style.webkitTransform = 'translateZ(0px)';
115 document.body.offsetTop; 115 document.body.offsetTop;
116 116
117 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(false); 117 // PATCH 1 (and below)
118 window.internals.setNeedsCompositedScrolling(parentscrollinglayer,
119 window.internals.FORCE_COMPOSITED_SCROLLING_OFF);
118 parentscrollinglayer.style.webkitTransform = ''; 120 parentscrollinglayer.style.webkitTransform = '';
119 121
120 var oldStackingOrder = getStackingOrder(); 122 var oldStackingOrder = getStackingOrder();
121 var oldPaintOrder = getPaintOrder(childscrollinglayer); 123 var oldPaintOrder = getPaintOrder(childscrollinglayer);
122 124
123 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true); 125 window.internals.setNeedsCompositedScrolling(parentscrollinglayer,
126 window.internals.FORCE_COMPOSITED_SCROLLING_ON);
124 parentscrollinglayer.style.webkitTransform = 'translateZ(0px)'; 127 parentscrollinglayer.style.webkitTransform = 'translateZ(0px)';
125 128
126 var newStackingOrder = getStackingOrder(); 129 var newStackingOrder = getStackingOrder();
127 var newPaintOrder = getPaintOrder(childscrollinglayer); 130 var newPaintOrder = getPaintOrder(childscrollinglayer);
128 131
129 // The getPaintOrder() function should return a pair of paint orders. 132 // The getPaintOrder() function should return a pair of paint orders.
130 // One before promotion and one after. This pair of lists should remain 133 // One before promotion and one after. This pair of lists should remain
131 // identical whether the element is actually currently promoted or not, 134 // identical whether the element is actually currently promoted or not,
132 // its purpose is to generate hypothetical pre- and post-lists to 135 // its purpose is to generate hypothetical pre- and post-lists to
133 // determine if the element is promotable. 136 // determine if the element is promotable.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 <div class="filler"></div> 178 <div class="filler"></div>
176 <div class="filler"></div> 179 <div class="filler"></div>
177 </div> 180 </div>
178 <div id="fillerchild1" class="filler negativechild"></div> 181 <div id="fillerchild1" class="filler negativechild"></div>
179 <div id="fillerchild2" class="filler negativechild"></div> 182 <div id="fillerchild2" class="filler negativechild"></div>
180 <div id="fillerchild3" class="filler negativechild"></div> 183 <div id="fillerchild3" class="filler negativechild"></div>
181 <div id="fillerchild4" class="filler negativechild"></div> 184 <div id="fillerchild4" class="filler negativechild"></div>
182 <pre id="console"></pre> 185 <pre id="console"></pre>
183 </body> 186 </body>
184 </html> 187 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698