summaryrefslogtreecommitdiff
path: root/dom/bindings
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-29 14:44:39 +0200
committerGitHub <noreply@github.com>2018-04-29 14:44:39 +0200
commit93ecdac4f810a8b4d5144e6c2a1fd9d89f5b760e (patch)
treed1e865c31c0864837f47f2eb1c99edd3a011c5d8 /dom/bindings
parentf0f7161bc0faaed78a2194b819bde6d2673382d8 (diff)
parent68691179f22ef562006cb78ca2ec0187151ac833 (diff)
downloaduxp-93ecdac4f810a8b4d5144e6c2a1fd9d89f5b760e.tar.gz
Merge pull request #294 from janekptacijarabaci/js_dom_performance-resource-timing_2
moebius#161: The Performance Resource Timing (make timestamps be relative to startTime)
Diffstat (limited to 'dom/bindings')
-rw-r--r--dom/bindings/Codegen.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index 3174c37ddc..7a66686874 100644
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -1069,6 +1069,20 @@ class CGHeaders(CGWrapper):
if parent:
ancestors.append(parent)
interfaceDeps.extend(ancestors)
+
+ # Include parent interface headers needed for jsonifier code.
+ jsonInterfaceParents = []
+ for desc in descriptors:
+ if not desc.operations['Jsonifier']:
+ continue
+ parent = desc.interface.parent
+ while parent:
+ parentDesc = desc.getDescriptor(parent.identifier.name)
+ if parentDesc.operations['Jsonifier']:
+ jsonInterfaceParents.append(parentDesc.interface)
+ parent = parent.parent
+ interfaceDeps.extend(jsonInterfaceParents)
+
bindingIncludes = set(self.getDeclarationFilename(d) for d in interfaceDeps)
# Grab all the implementation declaration files we need.