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

Unified Diff: Source/core/html/parser/HTMLDocumentParser.cpp

Issue 521363002: Make XHR use the background HTML parser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compile Created 6 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
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index 3d7d7a47589d0683200fadf6df8065cd30e5d01b..6550314ea84dcfcda1d5c7d343b5027dd2216d9a 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -744,8 +744,10 @@ void HTMLDocumentParser::startBackgroundParser()
m_backgroundParser = WeakPtr<BackgroundHTMLParser>(reference);
// TODO(oysteine): Disabled due to crbug.com/398076 until a full fix can be implemented.
- if (RuntimeEnabledFeatures::threadedParserDataReceiverEnabled())
- document()->loader()->attachThreadedDataReceiver(adoptPtr(new ParserDataReceiver(m_backgroundParser)));
+ if (RuntimeEnabledFeatures::threadedParserDataReceiverEnabled()) {
+ if (DocumentLoader* loader = document()->loader())
+ loader->attachThreadedDataReceiver(adoptPtr(new ParserDataReceiver(m_backgroundParser)));
+ }
OwnPtr<BackgroundHTMLParser::Configuration> config = adoptPtr(new BackgroundHTMLParser::Configuration);
config->options = m_options;
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLParserOptions.cpp » ('j') | Source/core/inspector/DOMPatchSupport.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698