Index: sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate |
diff --git a/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate b/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate |
index 7d9d2bf641df249a2bae9fbae72e51bd3f115399..dba7b013c82ec2119965dded65720e4e2ba6c528 100644 |
--- a/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate |
+++ b/sdk/lib/html/templates/html/impl/impl_CanvasElement.darttemplate |
@@ -5,5 +5,8 @@ |
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
$!MEMBERS |
+$if DART2JS |
+ CanvasRenderingContext getContext(String contextId) native; |
+$endif |
CanvasRenderingContext2D get context2d => getContext('2d'); |
} |