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

Unified Diff: lib/dom/scripts/systemnative.py

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/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index 729d51e3657b8e9c886e99f76c3849a6612c7aa7..dd1e21ca257767695781d2fc48e6645db77f9711 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -742,17 +742,12 @@ class NativeImplementationGenerator(object):
dart_declaration, 'Callback', True)
return
- if self._interface.id == 'Document' and info.name == 'querySelector':
- # Document.querySelector has custom implementation in dart:html.
- # FIXME: Cleanup query selectors and remove this hack.
- body = emitter.Emitter()
- else:
- body = self._members_emitter.Emit(
- '\n'
- ' $DECLARATION {\n'
- '$!BODY'
- ' }\n',
- DECLARATION=dart_declaration)
+ body = self._members_emitter.Emit(
+ '\n'
+ ' $DECLARATION {\n'
+ '$!BODY'
+ ' }\n',
+ DECLARATION=dart_declaration)
self._native_version = 0
overloads = self.CombineOverloads(info.overloads)

Powered by Google App Engine
This is Rietveld 408576698