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

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

Issue 259443002: Revert of Make data: urls always parse async (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
7 function runNonFastScrollableRegionTest(scale) { 1 function runNonFastScrollableRegionTest(scale) {
8 var invScale; 2 var invScale;
3 window.internals.settings.setMockScrollbarsEnabled(true);
9 if (scale != undefined) { 4 if (scale != undefined) {
10 if (window.eventSender) 5 if (window.eventSender)
11 eventSender.setPageScaleFactor(scale, 0, 0); 6 eventSender.setPageScaleFactor(scale, 0, 0);
12 // FIXME: This is a hack for applyPageScaleFactorInCompositor() == false . 7 // FIXME: This is a hack for applyPageScaleFactorInCompositor() == false .
13 invScale = 1 / scale; 8 invScale = 1 / scale;
14 } else { 9 } else {
15 invScale = 1; 10 invScale = 1;
16 } 11 }
17 12
18 var overlay = document.createElement("div"); 13 var overlay = document.createElement("div");
(...skipping 12 matching lines...) Expand all
31 patch.style.top = rect.top * invScale + "px"; 26 patch.style.top = rect.top * invScale + "px";
32 patch.style.width = rect.width * invScale + "px"; 27 patch.style.width = rect.width * invScale + "px";
33 patch.style.height = rect.height * invScale + "px"; 28 patch.style.height = rect.height * invScale + "px";
34 29
35 overlay.appendChild(patch); 30 overlay.appendChild(patch);
36 } 31 }
37 32
38 document.body.appendChild(overlay); 33 document.body.appendChild(overlay);
39 } 34 }
40 35
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