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

Unified Diff: tools/dom/scripts/htmldartgenerator.py

Issue 163443002: Version 1.2.0-dev.5.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/VERSION ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmldartgenerator.py
===================================================================
--- tools/dom/scripts/htmldartgenerator.py (revision 32649)
+++ tools/dom/scripts/htmldartgenerator.py (working copy)
@@ -477,6 +477,11 @@
def _AddConstructor(self,
constructor_info, factory_name, factory_constructor_name):
+ # Hack to ignore the Image constructor used by JavaScript.
+ if (self._interface.id == 'HTMLImageElement'
+ and not constructor_info.pure_dart_constructor):
+ return
+
if self.GenerateCustomFactory(constructor_info):
return
« no previous file with comments | « tools/VERSION ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698