| OLD | NEW |
| 1 library dart.dom.svg; | 1 library dart.dom.svg; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev' hide deprecated; | 5 import 'dart:_collection-dev' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; | 8 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa
me; |
| 9 import 'dart:_foreign_helper' show JS; | 9 import 'dart:_foreign_helper' show JS; |
| 10 import 'dart:_interceptors' show Interceptor; | 10 import 'dart:_interceptors' show Interceptor; |
| (...skipping 4799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4810 @DomName('Element.insertAdjacentHTML') | 4810 @DomName('Element.insertAdjacentHTML') |
| 4811 void insertAdjacentHtml(String where, String text) { | 4811 void insertAdjacentHtml(String where, String text) { |
| 4812 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); | 4812 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); |
| 4813 } | 4813 } |
| 4814 | 4814 |
| 4815 @DomName('Element.insertAdjacentHTML') | 4815 @DomName('Element.insertAdjacentHTML') |
| 4816 Element insertAdjacentElement(String where, Element element) { | 4816 Element insertAdjacentElement(String where, Element element) { |
| 4817 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); | 4817 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); |
| 4818 } | 4818 } |
| 4819 | 4819 |
| 4820 HtmlCollection get $dom_children { | 4820 HtmlCollection get _children { |
| 4821 throw new UnsupportedError("Cannot get dom_children on SVG."); | 4821 throw new UnsupportedError("Cannot get _children on SVG."); |
| 4822 } | 4822 } |
| 4823 | 4823 |
| 4824 bool get isContentEditable => false; | 4824 bool get isContentEditable => false; |
| 4825 void click() { | 4825 void click() { |
| 4826 throw new UnsupportedError("Cannot invoke click SVG."); | 4826 throw new UnsupportedError("Cannot invoke click SVG."); |
| 4827 } | 4827 } |
| 4828 | 4828 |
| 4829 /** | 4829 /** |
| 4830 * Checks to see if the SVG element type is supported by the current platform. | 4830 * Checks to see if the SVG element type is supported by the current platform. |
| 4831 * | 4831 * |
| 4832 * The tag should be a valid SVG element tag name. | 4832 * The tag should be a valid SVG element tag name. |
| 4833 */ | 4833 */ |
| 4834 static bool isTagSupported(String tag) { | 4834 static bool isTagSupported(String tag) { |
| 4835 var e = new SvgElement.tag(tag); | 4835 var e = new SvgElement.tag(tag); |
| 4836 return e is SvgElement && !(e is UnknownElement); | 4836 return e is SvgElement && !(e is UnknownElement); |
| 4837 } | 4837 } |
| 4838 // To suppress missing implicit constructor warnings. | 4838 // To suppress missing implicit constructor warnings. |
| 4839 factory SvgElement._() { throw new UnsupportedError("Not supported"); } | 4839 factory SvgElement._() { throw new UnsupportedError("Not supported"); } |
| 4840 | 4840 |
| 4841 // Shadowing definition. | 4841 // Shadowing definition. |
| 4842 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th
is); | 4842 AnimatedString get _svgClassName => JS("AnimatedString", "#.className", this); |
| 4843 | 4843 |
| 4844 @JSName('ownerSVGElement') | 4844 @JSName('ownerSVGElement') |
| 4845 @DomName('SVGElement.ownerSVGElement') | 4845 @DomName('SVGElement.ownerSVGElement') |
| 4846 @DocsEditable() | 4846 @DocsEditable() |
| 4847 final SvgSvgElement ownerSvgElement; | 4847 final SvgSvgElement ownerSvgElement; |
| 4848 | 4848 |
| 4849 // Use implementation from Element. | 4849 // Use implementation from Element. |
| 4850 // final CssStyleDeclaration style; | 4850 // final CssStyleDeclaration style; |
| 4851 | 4851 |
| 4852 @DomName('SVGElement.viewportElement') | 4852 @DomName('SVGElement.viewportElement') |
| (...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6174 @DomName('SVGVKernElement') | 6174 @DomName('SVGVKernElement') |
| 6175 @Unstable() | 6175 @Unstable() |
| 6176 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" { | 6176 abstract class _SVGVKernElement extends SvgElement native "SVGVKernElement" { |
| 6177 // To suppress missing implicit constructor warnings. | 6177 // To suppress missing implicit constructor warnings. |
| 6178 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } | 6178 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } |
| 6179 | 6179 |
| 6180 @DomName('SVGVKernElement.SVGVKernElement') | 6180 @DomName('SVGVKernElement.SVGVKernElement') |
| 6181 @DocsEditable() | 6181 @DocsEditable() |
| 6182 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 6182 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 6183 } | 6183 } |
| OLD | NEW |