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

Unified Diff: LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src-expected.html

Issue 19267027: Fixing src rectangle clipping with drawImage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: renamed clipRectsToImage to clipRectsToImageRect Created 7 years, 5 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
Index: LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src-expected.html
diff --git a/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src-expected.html b/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..35f541beab159a91d86889e99cd080bde7f05b83
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src-expected.html
@@ -0,0 +1,13 @@
+<html>
+<body>
+<canvas id="c1" width="300" height="300"></canvas>
+<canvas id="c2" width="300" height="300"></canvas>
+<script type="text/javascript">
+var ctx1 = document.getElementById('c1').getContext('2d');
+var ctx2 = document.getElementById('c2').getContext('2d');
+ctx1.fillStyle = 'green';
+ctx2.fillStyle = 'green';
+ctx1.fillRect(50, 50, 200, 200);
+ctx2.fillRect(50, 50, 200, 200);
+</script>
+</body></html>

Powered by Google App Engine
This is Rietveld 408576698