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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/paint2d-image-expected.html

Issue 2351363002: Make CSSStyleImageValue a member of CanvasImageSource. (Closed)
Patch Set: Override isAccelerated Created 4 years, 3 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: third_party/WebKit/LayoutTests/csspaint/paint2d-image-expected.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/paint2d-image-expected.html b/third_party/WebKit/LayoutTests/csspaint/paint2d-image-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..31c9f3f5f03eb69633363a3db600a19423fc0062
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/csspaint/paint2d-image-expected.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<canvas id="canvas" width="300" height="300"></canvas>
+
+<script>
+ var canvas = document.getElementById("canvas");
+ var ctx = canvas.getContext("2d");
+ var img = new Image;
+ img.src = "resources/html5.png";
+ img.onload = function() {
+ ctx.drawImage(img, 0, 0);
+ };
+</script>

Powered by Google App Engine
This is Rietveld 408576698