Index: tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
index bd70659e1e10e3578bd0fae4ace7c9411f527862..9173effb5071951c694971f4ba8e7d6f81a4e411 100644 |
--- a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
@@ -59,6 +59,14 @@ $else |
$endif |
} |
+ @DomName('CanvasRenderingContext2D.createPatternFromImage') |
+ CanvasPattern createPatternFromImage(ImageElement image, String repetitionType) => |
+$if DART2JS |
+ JS('CanvasPattern', '#.createPattern(#, #)', this, image, repetitionType); |
+$else |
+ createPattern(image, repetitionType); |
+$endif |
+ |
/** |
* Draws an image from a CanvasImageSource to an area of this canvas. |
* |