| 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 84a12b1b2b83237923cff750cd9b0edfbdbaec63..3192263de813d795839b99b6cf6b91da74d71498 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
| @@ -27,6 +27,7 @@
|
| #define HTMLDocumentParser_h
|
|
|
| #include "bindings/core/v8/DocumentWriteEvaluator.h"
|
| +#include "core/CoreExport.h"
|
| #include "core/dom/ParserContentPolicy.h"
|
| #include "core/dom/ScriptableDocumentParser.h"
|
| #include "core/fetch/ResourceClient.h"
|
| @@ -69,7 +70,7 @@ class HTMLTreeBuilder;
|
| class PumpSession;
|
| class TokenizedChunkQueue;
|
|
|
| -class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
|
| +class CORE_EXPORT HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptRunnerHost {
|
| USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
|
| USING_PRE_FINALIZER(HTMLDocumentParser, dispose);
|
| public:
|
| @@ -88,6 +89,9 @@ public:
|
|
|
| static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
|
|
|
| + // Exposed for testing.
|
| + HTMLScriptRunnerHost* asHTMLScriptRunnerHostForTesting() { return this; }
|
| +
|
| HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
|
|
|
| TextPosition textPosition() const final;
|
|
|