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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html

Issue 1613193002: Use correct size for unattached canvases when building canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
similarity index 76%
copy from third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html
copy to third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
index 1185895680efa61fabc0d05f4573624081fb1fd9..f877b54eec37336dc1d0d7f647d974f623164ddd 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
@@ -7,11 +7,13 @@
</filter>
</defs>
</svg>
-<canvas id="canvas" width="100" height="100"></canvas>
<script>
-var canvas = document.getElementById('canvas');
+var canvas = document.createElement('canvas');
+canvas.width = 100;
+canvas.height = 100;
var ctx = canvas.getContext('2d');
ctx.filter = 'url(#crop)';
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 90, 90);
+document.body.appendChild(canvas);
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698