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 e83f3bbd6411bb80acc842efc99330e4db6cc7de..366d5f6fef1b944a1f34342b52f00c1473302833 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" |
@@ -67,7 +68,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: |
@@ -86,6 +87,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; |