| Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index 1a41b81856c6b42adf792ccf44b7f99d5035fc58..ab1e39d240c61e3cbf4c996e1c441590613322d7 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -831,14 +831,20 @@ void HTMLDocumentParser::startBackgroundParser() {
|
| config->decoder = takeDecoder();
|
| config->tokenizedChunkQueue = m_tokenizedChunkQueue.get();
|
| if (document()->settings()) {
|
| - if (document()->settings()->backgroundHtmlParserOutstandingTokenLimit())
|
| + if (document()
|
| + ->settings()
|
| + ->getBackgroundHtmlParserOutstandingTokenLimit()) {
|
| config->outstandingTokenLimit =
|
| - document()->settings()->backgroundHtmlParserOutstandingTokenLimit();
|
| - if (document()->settings()->backgroundHtmlParserPendingTokenLimit())
|
| + document()
|
| + ->settings()
|
| + ->getBackgroundHtmlParserOutstandingTokenLimit();
|
| + }
|
| + if (document()->settings()->getBackgroundHtmlParserPendingTokenLimit()) {
|
| config->pendingTokenLimit =
|
| - document()->settings()->backgroundHtmlParserPendingTokenLimit();
|
| + document()->settings()->getBackgroundHtmlParserPendingTokenLimit();
|
| + }
|
| config->shouldCoalesceChunks =
|
| - document()->settings()->parseHTMLOnMainThreadCoalesceChunks();
|
| + document()->settings()->getParseHTMLOnMainThreadCoalesceChunks();
|
| }
|
|
|
| ASSERT(config->xssAuditor->isSafeToSendToAnotherThread());
|
| @@ -1156,7 +1162,7 @@ void HTMLDocumentParser::appendBytes(const char* data, size_t length) {
|
|
|
| LookaheadParserTaskSynchrony policy =
|
| document()->settings() &&
|
| - document()->settings()->parseHTMLOnMainThreadSyncTokenize()
|
| + document()->settings()->getParseHTMLOnMainThreadSyncTokenize()
|
| ? Synchronous
|
| : Asynchronous;
|
| postTaskToLookaheadParser(
|
|
|