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

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: Synced to changes 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
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5660dd184008ddbd18b6ddcec1fe9f4990c9e4d9..01fb537803d7dd8c835d9b679ac4584681254021 100644
--- a/Source/bindings/scripts/code_generator_v8.pm
+++ b/Source/bindings/scripts/code_generator_v8.pm
@@ -2771,12 +2771,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";
}
}
@@ -2797,7 +2795,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698