| 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 9b3874b3b3dbbf77e690c80e33d472c70ea4dbc3..9685aeed69f9d4ba2a639a536ba5737f153d3a4e 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -1412,7 +1412,6 @@ END
|
| my ($functionName, @arguments) = GetterExpression($interfaceName, $attribute);
|
| $code .= " Element* imp = V8Element::toNative(info.Holder());\n";
|
| $code .= " v8SetReturnValueString(info, imp->${functionName}(" . join(", ", @arguments) . "), info.GetIsolate());\n";
|
| - $code .= " return;\n";
|
| $code .= "}\n\n";
|
| $code .= "#endif // ${conditionalString}\n\n" if $conditionalString;
|
| $implementation{nameSpaceInternal}->add($code);
|
| @@ -1533,7 +1532,6 @@ END
|
| if ($arrayType) {
|
| AddIncludeForType("V8$arrayType.h");
|
| $code .= " v8SetReturnValue(info, v8Array(${getterString}, info.GetIsolate()));\n";
|
| - $code .= " return;\n";
|
| $code .= "}\n\n";
|
| $implementation{nameSpaceInternal}->add($code);
|
| return;
|
| @@ -1557,7 +1555,6 @@ END
|
| $code .= " V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), \"${attrName}\", wrapper);\n";
|
| $code .= " v8SetReturnValue(info, wrapper);\n";
|
| $code .= " }\n";
|
| - $code .= " return;\n";
|
| $code .= "}\n\n";
|
| $code .= "#endif // ${conditionalString}\n\n" if $conditionalString;
|
| $implementation{nameSpaceInternal}->add($code);
|
| @@ -1573,7 +1570,6 @@ END
|
| } else {
|
| $code .= " v8SetReturnValueFast(info, static_cast<$svgNativeType*>($expression), imp);\n";
|
| }
|
| - $code .= " return;\n";
|
| } elsif (IsSVGTypeNeedingTearOff($attrType) and not $interfaceName =~ /List$/) {
|
| AddToImplIncludes("V8$attrType.h");
|
| AddToImplIncludes("core/svg/properties/SVGPropertyTearOff.h");
|
| @@ -1609,7 +1605,6 @@ END
|
| } else {
|
| $code .= " v8SetReturnValueFast(info, $wrappedValue, imp);\n";
|
| }
|
| - $code .= " return;\n";
|
| } elsif ($attrCached) {
|
| if ($attribute->type eq "SerializedScriptValue") {
|
| $code .= " RefPtr<SerializedScriptValue> serialized = $getterString;\n";
|
| @@ -1620,7 +1615,6 @@ END
|
| $code .= <<END;
|
| info.Holder()->SetHiddenValue(propertyName, value);
|
| v8SetReturnValue(info, value);
|
| - return;
|
| END
|
| } elsif ($attribute->type eq "EventHandler") {
|
| AddToImplIncludes("bindings/v8/V8AbstractEventListener.h");
|
| @@ -1628,11 +1622,9 @@ END
|
| # FIXME: Pass the main world ID for main-world-only getters.
|
| $code .= " EventListener* listener = imp->${getterFunc}(isolatedWorldForIsolate(info.GetIsolate()));\n";
|
| $code .= " v8SetReturnValue(info, listener ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(listener)->getListenerObject(imp->scriptExecutionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));\n";
|
| - $code .= " return;\n";
|
| } else {
|
| my $nativeValue = NativeToJSValue($attribute->type, $attribute->extendedAttributes, $expression, " ", "", "info.Holder()", "info.GetIsolate()", "info", "imp", $forMainWorldSuffix, "return");
|
| $code .= "${nativeValue}\n";
|
| - $code .= " return;\n";
|
| }
|
|
|
| $code .= "}\n\n"; # end of getter
|
| @@ -1970,7 +1962,6 @@ END
|
| END
|
| }
|
|
|
| - $code .= " return;\n";
|
| $code .= "}\n\n"; # end of setter
|
| $code .= "#endif // ${conditionalString}\n\n" if $conditionalString;
|
| $implementation{nameSpaceInternal}->add($code);
|
|
|