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

Unified Diff: sky/engine/core/html/HTMLTitleElement.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/editing/InsertLineBreakCommand.cpp ('k') | sky/tests/editing/delete_block_contents.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLTitleElement.cpp
diff --git a/sky/engine/core/html/HTMLTitleElement.cpp b/sky/engine/core/html/HTMLTitleElement.cpp
index ca7e43229a668bca7db3a8849da40696af18f735..e2419cc48a0d1a6470b6cda8f22fba15df201f57 100644
--- a/sky/engine/core/html/HTMLTitleElement.cpp
+++ b/sky/engine/core/html/HTMLTitleElement.cpp
@@ -86,7 +86,7 @@ void HTMLTitleElement::setText(const String &value)
m_ignoreTitleUpdatesWhenChildrenChange = false;
if (!value.isEmpty())
- appendChild(document().createTextNode(value.impl()), IGNORE_EXCEPTION);
+ appendChild(Text::create(document(), value.impl()), IGNORE_EXCEPTION);
}
}
« no previous file with comments | « sky/engine/core/editing/InsertLineBreakCommand.cpp ('k') | sky/tests/editing/delete_block_contents.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698