OLD | NEW |
1 /** | 1 /** |
2 * Scalable Vector Graphics: | 2 * Scalable Vector Graphics: |
3 * Two-dimensional vector graphics with support for events and animation. | 3 * Two-dimensional vector graphics with support for events and animation. |
4 * | 4 * |
5 * For details about the features and syntax of SVG, a W3C standard, | 5 * For details about the features and syntax of SVG, a W3C standard, |
6 * refer to the | 6 * refer to the |
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). | 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). |
8 */ | 8 */ |
9 library dart.dom.svg; | 9 library dart.dom.svg; |
10 | 10 |
(...skipping 6108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6119 | 6119 |
6120 List<Element> get children => new FilteredElementList(this); | 6120 List<Element> get children => new FilteredElementList(this); |
6121 | 6121 |
6122 set children(List<Element> value) { | 6122 set children(List<Element> value) { |
6123 final children = this.children; | 6123 final children = this.children; |
6124 children.clear(); | 6124 children.clear(); |
6125 children.addAll(value); | 6125 children.addAll(value); |
6126 } | 6126 } |
6127 | 6127 |
6128 String get outerHtml { | 6128 String get outerHtml { |
6129 final container = new Element.tag("div"); | 6129 final container = new DivElement(); |
6130 final SvgElement cloned = this.clone(true); | 6130 final SvgElement cloned = this.clone(true); |
6131 container.children.add(cloned); | 6131 container.children.add(cloned); |
6132 return container.innerHtml; | 6132 return container.innerHtml; |
6133 } | 6133 } |
6134 | 6134 |
6135 String get innerHtml { | 6135 String get innerHtml { |
6136 final container = new Element.tag("div"); | 6136 final container = new DivElement(); |
6137 final SvgElement cloned = this.clone(true); | 6137 final SvgElement cloned = this.clone(true); |
6138 container.children.addAll(cloned.children); | 6138 container.children.addAll(cloned.children); |
6139 return container.innerHtml; | 6139 return container.innerHtml; |
6140 } | 6140 } |
6141 | 6141 |
6142 set innerHtml(String value) { | 6142 set innerHtml(String value) { |
6143 this.setInnerHtml(value); | 6143 this.setInnerHtml(value); |
6144 } | 6144 } |
6145 | 6145 |
6146 DocumentFragment createFragment(String svg, | 6146 DocumentFragment createFragment(String svg, |
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8084 * Constructor instantiated by the DOM when a custom element has been created. | 8084 * Constructor instantiated by the DOM when a custom element has been created. |
8085 * | 8085 * |
8086 * This can only be called by subclasses from their created constructor. | 8086 * This can only be called by subclasses from their created constructor. |
8087 */ | 8087 */ |
8088 _SVGMPathElement.created() : super.created(); | 8088 _SVGMPathElement.created() : super.created(); |
8089 | 8089 |
8090 // Override these methods for Dartium _SVGMPathElement can't be abstract. | 8090 // Override these methods for Dartium _SVGMPathElement can't be abstract. |
8091 AnimatedString get href => _blink.BlinkSVGMPathElement.instance.href_Getter_(t
his); | 8091 AnimatedString get href => _blink.BlinkSVGMPathElement.instance.href_Getter_(t
his); |
8092 } | 8092 } |
8093 | 8093 |
OLD | NEW |