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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 /** | 140 /** |
141 * Checks to see if the SVG element type is supported by the current platform. | 141 * Checks to see if the SVG element type is supported by the current platform. |
142 * | 142 * |
143 * The tag should be a valid SVG element tag name. | 143 * The tag should be a valid SVG element tag name. |
144 */ | 144 */ |
145 static bool isTagSupported(String tag) { | 145 static bool isTagSupported(String tag) { |
146 var e = new $CLASSNAME.tag(tag); | 146 var e = new $CLASSNAME.tag(tag); |
147 return e is $CLASSNAME && !(e is UnknownElement); | 147 return e is $CLASSNAME && !(e is UnknownElement); |
148 } | 148 } |
149 | 149 |
150 $if JSINTEROP | |
151 set _svgClassName(AnimatedString value) => | |
152 _blink.BlinkSVGElement.instance.className_Setter_(this, value); | |
153 | |
154 $endif | |
155 $!MEMBERS | 150 $!MEMBERS |
156 } | 151 } |
OLD | NEW |