Index: Source/bindings/scripts/generate-bindings.pl |
diff --git a/Source/bindings/scripts/generate-bindings.pl b/Source/bindings/scripts/generate-bindings.pl |
index a03e39542abae8b69fd43038d23cfc4e7550d1b1..4be15c16d8132447f77b7d6415b5ffae8db47f9c 100755 |
--- a/Source/bindings/scripts/generate-bindings.pl |
+++ b/Source/bindings/scripts/generate-bindings.pl |
@@ -134,7 +134,7 @@ foreach my $idlFile (@supplementedIdlFiles) { |
my $document = $parser->Parse($idlFile, $defines, $preprocessor); |
foreach my $interface (@{$document->interfaces}) { |
- if ($interface->isPartial and $interface->name eq $targetInterfaceName) { |
+ if (!$interface->isPartial || $interface->name eq $targetInterfaceName) { |
my $targetDataNode; |
foreach my $interface (@{$targetDocument->interfaces}) { |
if ($interface->name eq $targetInterfaceName) { |
@@ -147,7 +147,7 @@ foreach my $idlFile (@supplementedIdlFiles) { |
# Support for attributes of partial interfaces. |
foreach my $attribute (@{$interface->attributes}) { |
# Record that this attribute is implemented by $interfaceName. |
- $attribute->extendedAttributes->{"ImplementedBy"} = $interfaceName; |
+ $attribute->extendedAttributes->{"ImplementedBy"} = $interfaceName if $interface->isPartial; |
# Add interface-wide extended attributes to each attribute. |
applyInterfaceExtendedAttributes($interface, $attribute->extendedAttributes); |
@@ -158,7 +158,7 @@ foreach my $idlFile (@supplementedIdlFiles) { |
# Support for methods of partial interfaces. |
foreach my $function (@{$interface->functions}) { |
# Record that this method is implemented by $interfaceName. |
- $function->extendedAttributes->{"ImplementedBy"} = $interfaceName; |
+ $function->extendedAttributes->{"ImplementedBy"} = $interfaceName if $interface->isPartial; |
# Add interface-wide extended attributes to each method. |
applyInterfaceExtendedAttributes($interface, $function->extendedAttributes); |
@@ -169,7 +169,7 @@ foreach my $idlFile (@supplementedIdlFiles) { |
# Support for constants of partial interfaces. |
foreach my $constant (@{$interface->constants}) { |
# Record that this constant is implemented by $interfaceName. |
- $constant->extendedAttributes->{"ImplementedBy"} = $interfaceName; |
+ $constant->extendedAttributes->{"ImplementedBy"} = $interfaceName if $interface->isPartial; |
# Add interface-wide extended attributes to each constant. |
applyInterfaceExtendedAttributes($interface, $constant->extendedAttributes); |