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

Unified Diff: Source/core/inspector/DOMPatchSupport.cpp

Issue 277633002: Convert DocumentParser code to Use more reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make TextDocument use reference as well Created 6 years, 7 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/parser/TextDocumentParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/core/html/parser/TextDocumentParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698