| Index: Source/bindings/scripts/code_generator_v8.pm
|
| diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
|
| index 0ea8c6005b91bfc51cb771febaa28b5b9c119578..25df7b736b8a000411123e74f0b1f96db803c5d7 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -2755,10 +2755,11 @@ END
|
| $code .= $parameterCheckString;
|
|
|
| if ($interface->extendedAttributes->{"ConstructorCallWith"}) {
|
| - if ($interface->extendedAttributes->{"ConstructorCallWith"} eq "ExecutionContext") {
|
| + if (ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "ExecutionContext")) {
|
| push(@beforeArgumentList, "context");
|
| $code .= " ExecutionContext* context = getExecutionContext();\n";
|
| - } elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Document") {
|
| + }
|
| + if (ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "Document")) {
|
| push(@beforeArgumentList, "document");
|
| $code .= " Document& document = *toDocument(getExecutionContext());\n";
|
| }
|
|
|