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

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

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 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
167 var container = document.getElementById('container'); 169 var container = document.getElementById('container');
168 var containerOptedIn = didOptIn(container); 170 var containerOptedIn = didOptIn(container);
169 171
170 window.internals.setNeedsCompositedScrolling(container, 172 window.internals.setNeedsCompositedScrolling(container,
171 window.internals.COMPOSITED_SCROLLING_ALWAYS_OFF); 173 window.internals.COMPOSITED_SCROLLING_ALWAYS_OFF);
172 174
173 var oldStackingOrder = getStackingOrder(container); 175 var oldStackingOrder = getStackingOrder(container);
174 176
175 window.internals.setNeedsCompositedScrolling(container, 177 window.internals.setNeedsCompositedScrolling(container,
176 window.internals.COMPOSITED_SCROLLING_ALWAYS_ON); 178 window.internals.COMPOSITED_SCROLLING_ALWAYS_ON);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 236
235 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 1); 237 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 1);
236 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 2); 238 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 2);
237 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 3); 239 permuteWithFixedOrdering(testPermutation, siblingIndex, containerIndex, firs tChildIndex, secondChildIndex, 3);
238 } 240 }
239 } // function doTest 241 } // function doTest
240 242
241 function runOptInPermutationSet(permutationSet) { 243 function runOptInPermutationSet(permutationSet) {
242 runPermutationSet(testOptInPermutation, permutationSet); 244 runPermutationSet(testOptInPermutation, permutationSet);
243 } 245 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698