Index: Source/core/inspector/DOMPatchSupport.cpp |
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp |
index f03c4ac5fc0c73d022032a43402f7119afce391c..df2bdd15d7f17884904fba5ba4d07c02f3904f8f 100644 |
--- a/Source/core/inspector/DOMPatchSupport.cpp |
+++ b/Source/core/inspector/DOMPatchSupport.cpp |
@@ -95,7 +95,7 @@ void DOMPatchSupport::patchDocument(const String& markup) |
newDocument->setContextFeatures(m_document.contextFeatures()); |
RefPtr<DocumentParser> parser; |
if (m_document.isHTMLDocument()) |
- parser = HTMLDocumentParser::create(toHTMLDocument(newDocument.get()), false); |
+ parser = HTMLDocumentParser::create(toHTMLDocument(*newDocument), false); |
else |
parser = XMLDocumentParser::create(*newDocument, 0); |
parser->insert(markup); // Use insert() so that the parser will not yield. |