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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 List<Element> get children => new FilteredElementList(this); | 59 List<Element> get children => new FilteredElementList(this); |
60 | 60 |
61 set children(List<Element> value) { | 61 set children(List<Element> value) { |
62 final children = this.children; | 62 final children = this.children; |
63 children.clear(); | 63 children.clear(); |
64 children.addAll(value); | 64 children.addAll(value); |
65 } | 65 } |
66 | 66 |
67 String get outerHtml { | 67 String get outerHtml { |
68 final container = new Element.tag("div"); | 68 final container = new DivElement(); |
69 final SvgElement cloned = this.clone(true); | 69 final SvgElement cloned = this.clone(true); |
70 container.children.add(cloned); | 70 container.children.add(cloned); |
71 return container.innerHtml; | 71 return container.innerHtml; |
72 } | 72 } |
73 | 73 |
74 String get innerHtml { | 74 String get innerHtml { |
75 final container = new Element.tag("div"); | 75 final container = new DivElement(); |
76 final SvgElement cloned = this.clone(true); | 76 final SvgElement cloned = this.clone(true); |
77 container.children.addAll(cloned.children); | 77 container.children.addAll(cloned.children); |
78 return container.innerHtml; | 78 return container.innerHtml; |
79 } | 79 } |
80 | 80 |
81 set innerHtml(String value) { | 81 set innerHtml(String value) { |
82 this.setInnerHtml(value); | 82 this.setInnerHtml(value); |
83 } | 83 } |
84 | 84 |
85 DocumentFragment createFragment(String svg, | 85 DocumentFragment createFragment(String svg, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return e is $CLASSNAME && !(e is UnknownElement); | 144 return e is $CLASSNAME && !(e is UnknownElement); |
145 } | 145 } |
146 | 146 |
147 $if JSINTEROP | 147 $if JSINTEROP |
148 set _svgClassName(AnimatedString value) => | 148 set _svgClassName(AnimatedString value) => |
149 _blink.BlinkSVGElement.instance.className_Setter_(this, value); | 149 _blink.BlinkSVGElement.instance.className_Setter_(this, value); |
150 | 150 |
151 $endif | 151 $endif |
152 $!MEMBERS | 152 $!MEMBERS |
153 } | 153 } |
OLD | NEW |