| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 class _AttributeClassSet extends CssClassSetImpl { | 7 class _AttributeClassSet extends CssClassSetImpl { |
| 8 final Element _element; | 8 final Element _element; |
| 9 | 9 |
| 10 _AttributeClassSet(this._element); | 10 _AttributeClassSet(this._element); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_svg(svg); | 37 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_svg(svg); |
| 38 | 38 |
| 39 _AttributeClassSet _cssClassSet; | 39 _AttributeClassSet _cssClassSet; |
| 40 CssClassSet get classes { | 40 CssClassSet get classes { |
| 41 if (_cssClassSet == null) { | 41 if (_cssClassSet == null) { |
| 42 _cssClassSet = new _AttributeClassSet(this); | 42 _cssClassSet = new _AttributeClassSet(this); |
| 43 } | 43 } |
| 44 return _cssClassSet; | 44 return _cssClassSet; |
| 45 } | 45 } |
| 46 | 46 |
| 47 List<Element> get children => new FilteredElementList(this); | 47 List<Element> get children => new FilteredElementList<Element>(this); |
| 48 | 48 |
| 49 void set children(List<Element> value) { | 49 void set children(List<Element> value) { |
| 50 final children = this.children; | 50 final children = this.children; |
| 51 children.clear(); | 51 children.clear(); |
| 52 children.addAll(value); | 52 children.addAll(value); |
| 53 } | 53 } |
| 54 | 54 |
| 55 String get outerHtml { | 55 String get outerHtml { |
| 56 final container = new Element.tag("div"); | 56 final container = new Element.tag("div"); |
| 57 final SvgElement cloned = this.clone(true); | 57 final SvgElement cloned = this.clone(true); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 * Checks to see if the SVG element type is supported by the current platform. | 104 * Checks to see if the SVG element type is supported by the current platform. |
| 105 * | 105 * |
| 106 * The tag should be a valid SVG element tag name. | 106 * The tag should be a valid SVG element tag name. |
| 107 */ | 107 */ |
| 108 static bool isTagSupported(String tag) { | 108 static bool isTagSupported(String tag) { |
| 109 var e = new $CLASSNAME.tag(tag); | 109 var e = new $CLASSNAME.tag(tag); |
| 110 return e is $CLASSNAME && !(e is UnknownElement); | 110 return e is $CLASSNAME && !(e is UnknownElement); |
| 111 } | 111 } |
| 112 $!MEMBERS | 112 $!MEMBERS |
| 113 } | 113 } |
| OLD | NEW |