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

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

Issue 1138383006: "Reverting 45790" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 // Unsupported methods inherited from Element. 110 // Unsupported methods inherited from Element.
111 111
112 @DomName('Element.insertAdjacentText') 112 @DomName('Element.insertAdjacentText')
113 void insertAdjacentText(String where, String text) { 113 void insertAdjacentText(String where, String text) {
114 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); 114 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG.");
115 } 115 }
116 116
117 @DomName('Element.insertAdjacentHTML') 117 @DomName('Element.insertAdjacentHTML')
118 void insertAdjacentHtml(String where, String text, {NodeValidator validator, 118 void insertAdjacentHtml(String where, String text) {
119 NodeTreeSanitizer treeSanitizer}) {
120 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); 119 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG.");
121 } 120 }
122 121
123 @DomName('Element.insertAdjacentElement') 122 @DomName('Element.insertAdjacentHTML')
124 Element insertAdjacentElement(String where, Element element) { 123 Element insertAdjacentElement(String where, Element element) {
125 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); 124 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG.");
126 } 125 }
127 126
128 HtmlCollection get _children { 127 HtmlCollection get _children {
129 throw new UnsupportedError("Cannot get _children on SVG."); 128 throw new UnsupportedError("Cannot get _children on SVG.");
130 } 129 }
131 130
132 bool get isContentEditable => false; 131 bool get isContentEditable => false;
133 void click() { 132 void click() {
134 throw new UnsupportedError("Cannot invoke click SVG."); 133 throw new UnsupportedError("Cannot invoke click SVG.");
135 } 134 }
136 135
137 /** 136 /**
138 * Checks to see if the SVG element type is supported by the current platform. 137 * Checks to see if the SVG element type is supported by the current platform.
139 * 138 *
140 * The tag should be a valid SVG element tag name. 139 * The tag should be a valid SVG element tag name.
141 */ 140 */
142 static bool isTagSupported(String tag) { 141 static bool isTagSupported(String tag) {
143 var e = new $CLASSNAME.tag(tag); 142 var e = new $CLASSNAME.tag(tag);
144 return e is $CLASSNAME && !(e is UnknownElement); 143 return e is $CLASSNAME && !(e is UnknownElement);
145 } 144 }
146 $!MEMBERS 145 $!MEMBERS
147 } 146 }
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