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 $!TOPLEVEL |
| 8 |
7 class _AttributeClassSet extends CssClassSetImpl { | 9 class _AttributeClassSet extends CssClassSetImpl { |
8 final Element _element; | 10 final Element _element; |
9 | 11 |
10 _AttributeClassSet(this._element); | 12 _AttributeClassSet(this._element); |
11 | 13 |
12 Set<String> readClasses() { | 14 Set<String> readClasses() { |
13 var classname = _element.attributes['class']; | 15 var classname = _element.attributes['class']; |
14 | 16 |
15 Set<String> s = new LinkedHashSet<String>(); | 17 Set<String> s = new LinkedHashSet<String>(); |
16 if (classname == null) { | 18 if (classname == null) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 * Checks to see if the SVG element type is supported by the current platform. | 145 * Checks to see if the SVG element type is supported by the current platform. |
144 * | 146 * |
145 * The tag should be a valid SVG element tag name. | 147 * The tag should be a valid SVG element tag name. |
146 */ | 148 */ |
147 static bool isTagSupported(String tag) { | 149 static bool isTagSupported(String tag) { |
148 var e = new $CLASSNAME.tag(tag); | 150 var e = new $CLASSNAME.tag(tag); |
149 return e is $CLASSNAME && !(e is UnknownElement); | 151 return e is $CLASSNAME && !(e is UnknownElement); |
150 } | 152 } |
151 $!MEMBERS | 153 $!MEMBERS |
152 } | 154 } |
OLD | NEW |