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

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

Issue 140853005: update custom elements and shadow dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 @DocsEditable() 7 @DocsEditable()
8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC
9 { 9 {
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 */ 44 */
45 @deprecated 45 @deprecated
46 @Experimental() 46 @Experimental()
47 @DomName('Document.querySelectorAll') 47 @DomName('Document.querySelectorAll')
48 ElementList queryAll(String relativeSelectors) => 48 ElementList queryAll(String relativeSelectors) =>
49 querySelectorAll(relativeSelectors); 49 querySelectorAll(relativeSelectors);
50 50
51 /// Checks if [register] is supported on the current platform. 51 /// Checks if [register] is supported on the current platform.
52 bool get supportsRegister { 52 bool get supportsRegister {
53 $if DART2JS 53 $if DART2JS
54 return JS('bool', '("register" in #)', this); 54 return JS('bool', '("registerElement" in #)', this);
55 $else 55 $else
56 return true; 56 return true;
57 $endif 57 $endif
58 } 58 }
59 59
60 @DomName('Document.createElement') 60 @DomName('Document.createElement')
61 Element createElement(String tagName, [String typeExtension]) { 61 Element createElement(String tagName, [String typeExtension]) {
62 $if DART2JS 62 $if DART2JS
63 return _createElement(tagName, typeExtension); 63 return _createElement(tagName, typeExtension);
64 $else 64 $else
65 if (typeExtension != null) { 65 if (typeExtension != null) {
66 return _createElement(tagName, typeExtension); 66 return _createElement(tagName, typeExtension);
67 } else { 67 } else {
68 // Fast-path for Dartium when typeExtension is not needed. 68 // Fast-path for Dartium when typeExtension is not needed.
69 return _Utils.createElement(this, tagName); 69 return _Utils.createElement(this, tagName);
70 } 70 }
71 $endif 71 $endif
72 } 72 }
73 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698