Chromium Code Reviews| 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..00694ce47356841d428894fb06b89fc08436862d 100644 |
| --- a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| @@ -261,7 +261,19 @@ $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 = []; |
| + setLineDash(result); |
|
blois
2013/10/22 00:50:40
why set?
|
| + } |
| + return result; |
| + } |
| // TODO(amouravski): Add Dartium native methods for drawImage once we figure |
| // out how to not break native bindings. |
| $endif |