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

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

Issue 23513013: Have Text constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 | « Source/core/dom/CDATASection.cpp ('k') | Source/core/dom/Text.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 02b5ef780e77abab724e690ba8da10d86669dae1..9745deb5701b753b8c0b46c4775079b08346f56e 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -798,7 +798,7 @@ PassRefPtr<DocumentFragment> Document::createDocumentFragment()
PassRefPtr<Text> Document::createTextNode(const String& data)
{
- return Text::create(this, data);
+ return Text::create(*this, data);
}
PassRefPtr<Comment> Document::createComment(const String& data)
@@ -816,7 +816,7 @@ PassRefPtr<CDATASection> Document::createCDATASection(const String& data, Except
es.throwDOMException(InvalidCharacterError, "String cannot contain ']]>' since that is the end delimiter of a CData section.");
return 0;
}
- return CDATASection::create(this, data);
+ return CDATASection::create(*this, data);
}
PassRefPtr<ProcessingInstruction> Document::createProcessingInstruction(const String& target, const String& data, ExceptionState& es)
@@ -834,7 +834,7 @@ PassRefPtr<ProcessingInstruction> Document::createProcessingInstruction(const St
PassRefPtr<Text> Document::createEditingTextNode(const String& text)
{
- return Text::createEditingText(this, text);
+ return Text::createEditingText(*this, text);
}
PassRefPtr<CSSStyleDeclaration> Document::createCSSStyleDeclaration()
« no previous file with comments | « Source/core/dom/CDATASection.cpp ('k') | Source/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698