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

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

Issue 9965003: Another dartium fix. I swear this is the last one. (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 | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/templates/html/dartium/impl_Window.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index 0f9f4a6e2316f92b1a68cc088ccfd5253cc7b3ba..18c7176451aa1c179ecc3d49277737d7a07032e2 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -1394,12 +1394,10 @@ class HtmlDartiumInterfaceGenerator(object):
self._members_emitter.Emit(
'\n'
' $TYPE get on() {\n'
- ' if (_on == null) _on = new $TYPE($EVENTTARGET);\n'
+ ' if (_on == null) _on = new $TYPE(this);\n'
' return _on;\n'
' }\n',
- TYPE=events_class,
- EVENTTARGET='_wrappedDocumentPtr' if self._interface.id == 'Document'
- else 'this')
+ TYPE=events_class)
def _SecondaryContext(self, interface):
if interface is not self._current_secondary_parent:
« no previous file with comments | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/templates/html/dartium/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698