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 2a540621a2a98429883110ece73ceb5f7c58a148..4e2851ece1010e0220d13f90b3300590e800c87f 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h |
@@ -70,10 +70,7 @@ class TokenizedChunkQueue; |
class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost { |
USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); |
public: |
- static HTMLDocumentParser* create(HTMLDocument& document, ParserSynchronizationPolicy backgroundParsingPolicy) |
- { |
- return new HTMLDocumentParser(document, backgroundParsingPolicy); |
- } |
+ static HTMLDocumentParser* create(HTMLDocument&, ParserSynchronizationPolicy); |
~HTMLDocumentParser() override; |
DECLARE_VIRTUAL_TRACE(); |
@@ -82,6 +79,10 @@ public: |
static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent); |
+ // Exposed for testing. |
Charlie Harrison
2016/08/03 14:40:03
Append "ForTesting" to the end of methods that sho
|
+ static bool threadingAllowedForDocument(HTMLDocument&); |
+ HTMLScriptRunnerHost* asHTMLScriptRunnerHost() { return this; } |
+ |
HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } |
TextPosition textPosition() const final; |