Update the WebIDL parser.

This commit is contained in:
Ms2ger 2015-03-13 16:48:48 +01:00
parent 2382d71242
commit 4157a2b02b
5 changed files with 339 additions and 105 deletions

View file

@ -419,7 +419,8 @@ def typeIsSequenceOrHasSequenceMember(type):
return False
def typeNeedsRooting(type, descriptorProvider):
return type.isGeckoInterface() and descriptorProvider.getDescriptor(type.name).needsRooting
return (type.isGeckoInterface() and
descriptorProvider.getDescriptor(type.unroll().inner.identifier.name).needsRooting)
def union_native_type(t):