Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 100473006: IDL compiler: [Constructor] w/o arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b96a9945078fb3ced95c63f9447bacc175cd1952..1a2e2f7cf8eb2c01244521fb14db7f8b7c0db3a6 100644
--- a/Source/bindings/scripts/code_generator_v8.pm
+++ b/Source/bindings/scripts/code_generator_v8.pm
@@ -2776,12 +2776,10 @@ END
if ($interface->extendedAttributes->{"ConstructorCallWith"}) {
if ($interface->extendedAttributes->{"ConstructorCallWith"} eq "ExecutionContext") {
push(@beforeArgumentList, "context");
- $code .= "\n";
- $code .= " ExecutionContext* context = getExecutionContext();";
+ $code .= " ExecutionContext* context = getExecutionContext();\n";
} elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Document") {
push(@beforeArgumentList, "document");
- $code .= "\n";
- $code .= " Document& document = *toDocument(getExecutionContext());";
+ $code .= " Document& document = *toDocument(getExecutionContext());\n";
}
}
@@ -2802,7 +2800,6 @@ END
}
my $argumentString = join(", ", @beforeArgumentList, @argumentList, @afterArgumentList);
- $code .= "\n";
$code .= " RefPtr<${implClassName}> impl = ${implClassName}::create(${argumentString});\n";
$code .= " v8::Handle<v8::Object> wrapper = info.Holder();\n";
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_interface.py » ('j') | Source/bindings/scripts/unstable/v8_interface.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698