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()); |
} |