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

Unified Diff: client/dom/scripts/systemhtml.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
Index: client/dom/scripts/systemhtml.py
diff --git a/client/dom/scripts/systemhtml.py b/client/dom/scripts/systemhtml.py
index 64748f425d9e1ea2ddcfd0e1cda4b8009d174bc8..5497ee4171346a9d9d67906cd2c38734ebf8e2cf 100644
--- a/client/dom/scripts/systemhtml.py
+++ b/client/dom/scripts/systemhtml.py
@@ -474,9 +474,9 @@ class HtmlSystemShared(object):
# TODO(jacobr): this isn't quite right....
def GetParentsEventsClasses(self, interface):
- # Ugly hack as we don't specify that Document inherits from Element
- # in our IDL.
- if interface.id == 'Document':
+ # Ugly hack as we don't specify that Document and DocumentFragment inherit
+ # from Element in our IDL.
+ if interface.id == 'Document' or interface.id == 'DocumentFragment':
return ['ElementEvents']
Jacob 2012/03/06 05:09:00 Why are you hard coding the parent for 'Document'?
nweiz 2012/03/06 20:10:47 That was there prior to this change.
interfaces_with_events = set()

Powered by Google App Engine
This is Rietveld 408576698