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

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

Issue 17640007: Refactoring: Simplify DocumentWriter by reorganizing its lifetime. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed a build breakage Created 7 years, 6 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e55ea85204d0fb7c4ef4e951607fd3d934be500a..bfc8d57e34b153a1d578b7852dfdcfcb86121a5b 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2141,7 +2141,7 @@ void Document::cancelParsing()
explicitClose();
}
-void Document::implicitOpen()
+PassRefPtr<DocumentParser> Document::implicitOpen()
{
cancelParsing();
@@ -2159,6 +2159,8 @@ void Document::implicitOpen()
m_parser = createParser();
setParsing(true);
setReadyState(Loading);
+
+ return m_parser;
}
HTMLElement* Document::body() const

Powered by Google App Engine
This is Rietveld 408576698