Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: tools/dom/templates/html/impl/impl_SVGElement.darttemplate

Issue 14941002: Aggregate CSS manipulation functions in html lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CssClassSet { 7 class _AttributeClassSet extends CssClassSetImpl {
8 final Element _element; 8 final Element _element;
9 9
10 _AttributeClassSet(this._element); 10 _AttributeClassSet(this._element);
11 11
12 Set<String> readClasses() { 12 Set<String> readClasses() {
13 var classname = _element.attributes['class']; 13 var classname = _element.attributes['class'];
14 14
15 Set<String> s = new LinkedHashSet<String>(); 15 Set<String> s = new LinkedHashSet<String>();
16 if (classname == null) { 16 if (classname == null) {
17 return s; 17 return s;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698