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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-bounds.html

Issue 2441853002: Plumb preferred raster bounds rather than scale (Closed)
Patch Set: none Created 4 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
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 <div id=target style="will-change: transform; width: 310px; height: 175px; backg round-size: 100% 100%"></div> 2 <div id=target style="will-change: transform; width: 310px; height: 175px; backg round-size: 100% 100%"></div>
3 <pre id=output></pre> 3 <pre id=output></pre>
4 <script> 4 <script>
5 onload = function() { 5 onload = function() {
6 if (window.testRunner) { 6 if (window.testRunner) {
7 window.testRunner.waitUntilDone(); 7 window.testRunner.waitUntilDone();
8 window.testRunner.dumpAsText(); 8 window.testRunner.dumpAsText();
9 } 9 }
10 if (window.internals) 10 if (window.internals)
11 window.internals.runtimeFlags.preferredImageRasterScaleEnabled = true; 11 window.internals.runtimeFlags.preferredImageRasterBoundsEnabled = true;
12 12
13 var bgImg = new Image(); 13 var bgImg = new Image();
14 bgImg.src = '../../paint/invalidation/resources/ducky.png'; 14 bgImg.src = '../../paint/invalidation/resources/ducky.png';
15 bgImg.onload = function() { 15 bgImg.onload = function() {
16 target.style.backgroundImage = 'url(' + bgImg.src + ')'; 16 target.style.backgroundImage = 'url(' + bgImg.src + ')';
17 if (window.internals) 17 if (window.internals)
18 output.innerHTML = window.internals.layerTreeAsText(document); 18 output.innerHTML = window.internals.layerTreeAsText(document);
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.notifyDone(); 20 testRunner.notifyDone();
21 }; 21 };
22 } 22 }
23 </script> 23 </script>
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-bounds-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698