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

Side by Side Diff: LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js

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 var debugMode = false; 1 var debugMode = false;
2 2
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 function write(str) 6 function write(str)
7 { 7 {
8 var pre = document.getElementById('console'); 8 var pre = document.getElementById('console');
9 var text = document.createTextNode(str + '\n'); 9 var text = document.createTextNode(str + '\n');
10 pre.appendChild(text); 10 pre.appendChild(text);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 } 158 }
159 } 159 }
160 } 160 }
161 161
162 function testOptInPermutation(count, ordering, hasPositionedAncestor, containerI sPositioned) 162 function testOptInPermutation(count, ordering, hasPositionedAncestor, containerI sPositioned)
163 { 163 {
164 if (!window.internals) 164 if (!window.internals)
165 return; 165 return;
166 166
167 window.internals.forceCompositingUpdate(document);
168
169 var container = document.getElementById('container'); 167 var container = document.getElementById('container');
170 var containerOptedIn = didOptIn(container); 168 var containerOptedIn = didOptIn(container);
171 169
172 window.internals.setNeedsCompositedScrolling(container, 170 window.internals.setNeedsCompositedScrolling(container,
173 window.internals.COMPOSITED_SCROLLING_ALWAYS_OFF); 171 window.internals.COMPOSITED_SCROLLING_ALWAYS_OFF);
174 172
175 var oldStackingOrder = getStackingOrder(container); 173 var oldStackingOrder = getStackingOrder(container);
176 174
177 window.internals.setNeedsCompositedScrolling(container, 175 window.internals.setNeedsCompositedScrolling(container,
178 window.internals.COMPOSITED_SCROLLING_ALWAYS_ON); 176 window.internals.COMPOSITED_SCROLLING_ALWAYS_ON);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 234
237 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 1); 235 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 1);
238 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 2); 236 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 2);
239 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 3); 237 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 3);
240 } 238 }
241 } // function doTest 239 } // function doTest
242 240
243 function runOptInPermutationSet(permutationSet) { 241 function runOptInPermutationSet(permutationSet) {
244 runPermutationSet(testOptInPermutation, permutationSet); 242 runPermutationSet(testOptInPermutation, permutationSet);
245 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698