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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 879733002: Replace createTextNode with new Text(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698