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

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

Issue 254463006: This CL contains all of the changes for splitting off all of the native (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
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 $!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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698