mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 03:44:37 +00:00
Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky
This commit is contained in:
parent
5704575923
commit
8ddd74e1a2
@ -878,7 +878,15 @@ def UnionConversions(descriptors, dictionaries, callbacks, config):
|
||||
if f.isSpiderMonkeyInterface():
|
||||
headers.add("jsfriendapi.h")
|
||||
headers.add("mozilla/dom/TypedArray.h")
|
||||
elif not f.inner.isExternal():
|
||||
elif f.inner.isExternal():
|
||||
providers = getRelevantProviders(descriptor, config)
|
||||
for p in providers:
|
||||
try:
|
||||
typeDesc = p.getDescriptor(f.inner.identifier.name)
|
||||
except NoSuchDescriptorError:
|
||||
continue
|
||||
headers.add(typeDesc.headerFile)
|
||||
else:
|
||||
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
||||
# Check for whether we have a possibly-XPConnect-implemented
|
||||
# interface. If we do, the right descriptor will come from
|
||||
|
Loading…
Reference in New Issue
Block a user