| Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| index 108fdac2e628b4e9ec3992d9bf73dbbf3fd8631c..c38eb5314cb6615ea967100310c98e3d495fb0e9 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| @@ -172,6 +172,8 @@ class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser,
|
| bool isWaitingForScripts() const final;
|
| bool isExecutingScript() const final;
|
| void executeScriptsWaitingForResources() final;
|
| + void didAddPendingStylesheetInBody() final;
|
| + void didLoadAllStylesheets() final;
|
| void documentElementAvailable() override;
|
|
|
| // HTMLParserScriptRunnerHost
|
| @@ -200,7 +202,7 @@ class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser,
|
| void constructTreeFromCompactHTMLToken(const CompactHTMLToken&);
|
|
|
| void runScriptsForPausedTreeBuilder();
|
| - void resumeParsingAfterScriptExecution();
|
| + void resumeParsingAfterPause();
|
|
|
| void attemptToEnd();
|
| void endIfDelayed();
|
| @@ -265,10 +267,10 @@ class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser,
|
| XSSAuditor m_xssAuditor;
|
| XSSAuditorDelegate m_xssAuditorDelegate;
|
|
|
| - // FIXME: m_lastChunkBeforeScript, m_tokenizer, m_token, and m_input should be
|
| + // FIXME: m_lastChunkBeforePause, m_tokenizer, m_token, and m_input should be
|
| // combined into a single state object so they can be set and cleared together
|
| // and passed between threads together.
|
| - std::unique_ptr<TokenizedChunk> m_lastChunkBeforeScript;
|
| + std::unique_ptr<TokenizedChunk> m_lastChunkBeforePause;
|
| Deque<std::unique_ptr<TokenizedChunk>> m_speculations;
|
| WeakPtrFactory<HTMLDocumentParser> m_weakFactory;
|
| WeakPtr<BackgroundHTMLParser> m_backgroundParser;
|
| @@ -286,6 +288,8 @@ class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser,
|
| // would require keeping track of token positions of preload requests.
|
| CompactHTMLToken* m_pendingCSPMetaToken;
|
|
|
| + TaskHandle m_resumeParsingTaskHandle;
|
| +
|
| bool m_shouldUseThreading;
|
| bool m_endWasDelayed;
|
| bool m_haveBackgroundParser;
|
| @@ -294,6 +298,8 @@ class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser,
|
| unsigned m_pumpSpeculationsSessionNestingLevel;
|
| bool m_isParsingAtLineNumber;
|
| bool m_triedLoadingLinkHeaders;
|
| + bool m_addedPendingStylesheetInBody;
|
| + bool m_isWaitingForStylesheets;
|
| };
|
|
|
| } // namespace blink
|
|
|