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

Unified Diff: lib/dom/templates/html/impl/impl_Document.darttemplate

Issue 10447091: Cleanup NodeSelectors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/dom/templates/html/impl/impl_Document.darttemplate
diff --git a/lib/dom/templates/html/impl/impl_Document.darttemplate b/lib/dom/templates/html/impl/impl_Document.darttemplate
index abf0d78b116bcba2ae857bb097f1ed2a08ce600a..f421d193968243797e58dcd093129475ecc021fd 100644
--- a/lib/dom/templates/html/impl/impl_Document.darttemplate
+++ b/lib/dom/templates/html/impl/impl_Document.darttemplate
@@ -2,12 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class $CLASSNAME extends _NodeImpl
- implements Document
+class $CLASSNAME extends _NodeImpl implements Document
$if FROG
native "*HTMLDocument"
$endif
- {
+{
$!MEMBERS
// TODO(jacobr): implement all Element methods not on Document.
@@ -21,13 +20,6 @@ $!MEMBERS
return $dom_querySelector(selectors);
}
-// TODO(jacobr): autogenerate this method.
-$if FROG
- _ElementImpl $dom_querySelector(String selectors) native "return this.querySelector(selectors);";
-$else
- _ElementImpl $dom_querySelector(String selectors) native "Document_querySelector_Callback";
-$endif
-
ElementList queryAll(String selectors) {
if (const RegExp("""^\\[name=["'][^'"]+['"]\\]\$""").hasMatch(selectors)) {
final mutableMatches = $dom_getElementsByName(

Powered by Google App Engine
This is Rietveld 408576698