| 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:])
|
|
|