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

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: Address comments. Created 8 years, 6 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
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index dab7b584e28b2d855bc7be6f639b72e9338bc8ec..304b47cee3c46182479991d8f35fc72f0f8b5460 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -770,17 +770,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)
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698