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

Side by Side Diff: LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js

Issue 210253003: Make data: urls always parse async (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 8 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
« no previous file with comments | « LayoutTests/loader/iframe-sync-loads-expected.txt ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // setMockScrollbarsEnabled doesn't actually invalidate scrollbars
2 // so if we don't set it immediately, they won't repaint/relayout
3 // correctly! http://crbug.com/365509
4 if (window.internals)
5 window.internals.settings.setMockScrollbarsEnabled(true);
6
1 function runNonFastScrollableRegionTest(scale) { 7 function runNonFastScrollableRegionTest(scale) {
2 var invScale; 8 var invScale;
3 window.internals.settings.setMockScrollbarsEnabled(true);
4 if (scale != undefined) { 9 if (scale != undefined) {
5 if (window.eventSender) 10 if (window.eventSender)
6 eventSender.setPageScaleFactor(scale, 0, 0); 11 eventSender.setPageScaleFactor(scale, 0, 0);
7 // FIXME: This is a hack for applyPageScaleFactorInCompositor() == false . 12 // FIXME: This is a hack for applyPageScaleFactorInCompositor() == false .
8 invScale = 1 / scale; 13 invScale = 1 / scale;
9 } else { 14 } else {
10 invScale = 1; 15 invScale = 1;
11 } 16 }
12 17
13 var overlay = document.createElement("div"); 18 var overlay = document.createElement("div");
(...skipping 12 matching lines...) Expand all
26 patch.style.top = rect.top * invScale + "px"; 31 patch.style.top = rect.top * invScale + "px";
27 patch.style.width = rect.width * invScale + "px"; 32 patch.style.width = rect.width * invScale + "px";
28 patch.style.height = rect.height * invScale + "px"; 33 patch.style.height = rect.height * invScale + "px";
29 34
30 overlay.appendChild(patch); 35 overlay.appendChild(patch);
31 } 36 }
32 37
33 document.body.appendChild(overlay); 38 document.body.appendChild(overlay);
34 } 39 }
35 40
OLDNEW
« no previous file with comments | « LayoutTests/loader/iframe-sync-loads-expected.txt ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698