| Index: sky/engine/core/dom/Document.cpp
|
| diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
|
| index 5321c2335566d6cc46529e272538a7cf5f062473..4b7d4f5b9de4a52cc40e21b925da36d7a8ba3342 100644
|
| --- a/sky/engine/core/dom/Document.cpp
|
| +++ b/sky/engine/core/dom/Document.cpp
|
| @@ -518,11 +518,6 @@ PassRefPtr<DocumentFragment> Document::createDocumentFragment()
|
| return DocumentFragment::create(*this);
|
| }
|
|
|
| -PassRefPtr<Text> Document::createTextNode(const String& data)
|
| -{
|
| - return Text::create(*this, data);
|
| -}
|
| -
|
| PassRefPtr<Text> Document::createEditingTextNode(const String& text)
|
| {
|
| return Text::createEditingText(*this, text);
|
| @@ -546,7 +541,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt
|
| {
|
| switch (importedNode->nodeType()) {
|
| case TEXT_NODE:
|
| - return createTextNode(toText(importedNode)->data());
|
| + return Text::create(*this, toText(importedNode)->data());
|
| case ELEMENT_NODE: {
|
| Element* oldElement = toElement(importedNode);
|
| RefPtr<Element> newElement = createElement(oldElement->tagQName(), false);
|
|
|