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

Unified Diff: client/dom/scripts/dartgenerator.py

Issue 9610011: Port DocumentFragment to the new wrapperless DOM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | client/dom/scripts/systemhtml.py » ('j') | client/dom/scripts/systemhtml.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/dartgenerator.py
diff --git a/client/dom/scripts/dartgenerator.py b/client/dom/scripts/dartgenerator.py
index 8e8ee7aafe518da77ef2adb91a2adbf6f1ed6faf..9f92b9cd4e846cc914aa56d8c8561ec46a8a9496 100755
--- a/client/dom/scripts/dartgenerator.py
+++ b/client/dom/scripts/dartgenerator.py
@@ -399,7 +399,8 @@ class DartGenerator(object):
events = set([attr for attr in interface.attributes
if self._IsEventAttribute(interface, attr)])
- if events:
+ # Hack to generate no-op Element events for DocumentFragment.
Jacob 2012/03/06 05:09:00 Hacks like this should not go here. Place the hac
nweiz 2012/03/06 20:10:47 I'm not sure how to put this in systemhtml.py, sin
Jacob 2012/03/06 22:41:59 AddEventAttributes is really dart:html specific.
nweiz 2012/03/08 23:02:49 Done.
+ if events or interface.id == 'DocumentFragment':
for generator in generators:
generator.AddEventAttributes(events)
« no previous file with comments | « no previous file | client/dom/scripts/systemhtml.py » ('j') | client/dom/scripts/systemhtml.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698