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

Unified Diff: Source/core/dom/Text.cpp

Issue 340763003: Change [ConstructorCallWith={Document => ExecutionContext}] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
Index: Source/core/dom/Text.cpp
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
index 34a7df18241c66ab75b8751150916ca038419ebd..2bd5c06498713a0540b9ff598a86cc60c05646d7 100644
--- a/Source/core/dom/Text.cpp
+++ b/Source/core/dom/Text.cpp
@@ -42,14 +42,14 @@
namespace WebCore {
-PassRefPtrWillBeRawPtr<Text> Text::create(Document& document, const String& data)
+PassRefPtrWillBeRawPtr<Text> Text::create(ExecutionContext* executionContext, const String& data)
{
- return adoptRefWillBeNoop(new Text(document, data, CreateText));
+ return adoptRefWillBeNoop(new Text(*toDocument(executionContext), data, CreateText));
}
-PassRefPtrWillBeRawPtr<Text> Text::createEditingText(Document& document, const String& data)
+PassRefPtrWillBeRawPtr<Text> Text::createEditingText(ExecutionContext* executionContext, const String& data)
{
- return adoptRefWillBeNoop(new Text(document, data, CreateEditingText));
+ return adoptRefWillBeNoop(new Text(*toDocument(executionContext), data, CreateEditingText));
}
PassRefPtrWillBeRawPtr<Node> Text::mergeNextSiblingNodesIfPossible()
« Source/core/dom/Range.h ('K') | « Source/core/dom/Text.h ('k') | Source/core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698