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

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

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months 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/core/accessibility/AccessibilityRenderObject.cpp » ('j') | Source/core/dom/Range.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/deprecated_code_generator_v8.pm
diff --git a/Source/bindings/scripts/deprecated_code_generator_v8.pm b/Source/bindings/scripts/deprecated_code_generator_v8.pm
index 3a52a66b45c51114562d8c356f5588cda3ffc699..2fafb0f8ca417528c20d663623230d155913e627 100644
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm
@@ -2551,7 +2551,7 @@ END
} elsif ($interface->extendedAttributes->{"ConstructorCallWith"} eq "Document") {
push(@beforeArgumentList, "document");
$code .= "\n";
- $code .= " Document* document = toDocument(getScriptExecutionContext());";
+ $code .= " Document& document = *toDocument(getScriptExecutionContext());";
}
}
« no previous file with comments | « no previous file | Source/core/accessibility/AccessibilityRenderObject.cpp » ('j') | Source/core/dom/Range.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698