Index: tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate |
index 50b23adc857277cb2231781bcc2682675aafd5fc..82bf5a766032ca6d9753fc0deef37a4552ec3a57 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLCanvasElement.darttemplate |
@@ -6,7 +6,11 @@ part of $LIBRARYNAME; |
$(ANNOTATIONS)class $CLASSNAME$EXTENDS implements CanvasImageSource$IMPLEMENTS$NATIVESPEC { |
$!MEMBERS |
- CanvasRenderingContext2D get context2d => getContext('2d'); |
+ /** An API for drawing on this canvas. */ |
+ CanvasRenderingContext2D get context2D => getContext('2d'); |
+ |
+ @deprecated |
+ CanvasRenderingContext2D get context2d => this.context2D; |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |