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

Unified Diff: Source/core/xml/parser/XMLDocumentParser.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/html/track/WebVTTParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
index 64c329a2683082ed517d406e4ee0a696c7f8709f..bf56989d43b4374b6a807dddbcd0212e768437d9 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -372,7 +372,7 @@ void XMLDocumentParser::enterText()
{
ASSERT(m_bufferedText.size() == 0);
ASSERT(!m_leafTextNode);
- m_leafTextNode = Text::create(&m_currentNode->document(), "");
+ m_leafTextNode = Text::create(m_currentNode->document(), "");
m_currentNode->parserAppendChild(m_leafTextNode.get());
}
@@ -1162,7 +1162,7 @@ void XMLDocumentParser::cdataBlock(const String& text)
exitText();
- RefPtr<CDATASection> newNode = CDATASection::create(&m_currentNode->document(), text);
+ RefPtr<CDATASection> newNode = CDATASection::create(m_currentNode->document(), text);
m_currentNode->parserAppendChild(newNode.get());
}
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698