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 103038464be745acfac9f9401d789eddaaaf07ad..d7e4bc4712b0914a9ac8237d55b418182c711d98 100644 |
--- a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
@@ -261,7 +261,18 @@ $if DART2JS |
void set lineDashOffset(num value) => JS('void', |
'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : ' |
'#.webkitLineDashOffset = #', this, this, value, this, value); |
+ |
+ @DomName('CanvasRenderingContext2D.getLineDash') |
+ List<num> getLineDash() => _getLineDash(); |
$else |
+ @DomName('CanvasRenderingContext2D.getLineDash') |
+ List<num> getLineDash() { |
+ var result = _getLineDash(); |
+ if (result == null) { |
+ result = []; |
+ } |
+ return result; |
+ } |
// TODO(amouravski): Add Dartium native methods for drawImage once we figure |
// out how to not break native bindings. |
$endif |