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

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

Issue 283043003: Suppress cloning EventTarget methods in subtypes when using blink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen Created 6 years, 7 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 | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/database.py
diff --git a/tools/dom/scripts/database.py b/tools/dom/scripts/database.py
index 624ad004688a0b30679e8477613fd889a4551200..b5e4df92a8e4ab7c909e77d9066e74a01bab7135 100755
--- a/tools/dom/scripts/database.py
+++ b/tools/dom/scripts/database.py
@@ -247,7 +247,7 @@ class Database(object):
def AddEnum(self, enum):
self._enums[enum.id] = enum
- def TransitiveSecondaryParents(self, interface):
+ def TransitiveSecondaryParents(self, interface, propagate_event_target):
"""Returns a list of all non-primary parents.
The list contains the interface objects for interfaces defined in the
@@ -267,7 +267,8 @@ class Database(object):
result = []
if interface.parents:
parent = interface.parents[0]
- if IsPureInterface(parent.type.id) or parent.type.id == 'EventTarget':
+ if (IsPureInterface(parent.type.id) or
+ (propagate_event_target and parent.type.id == 'EventTarget')):
walk(interface.parents)
else:
walk(interface.parents[1:])
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698