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() |