Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: sky/engine/core/html/parser/HTMLDocumentParser.h

Issue 938623005: Allow multiple dart <script> tags in .sky files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: All works! Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/html/parser/HTMLDocumentParser.h
diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.h b/sky/engine/core/html/parser/HTMLDocumentParser.h
index 23e58ed57e8e9a2eea909793627b3ce1216232b3..b254534d6bfb2a0a8c6f3b3004e12b3697f9cbc9 100644
--- a/sky/engine/core/html/parser/HTMLDocumentParser.h
+++ b/sky/engine/core/html/parser/HTMLDocumentParser.h
@@ -54,7 +54,7 @@ class ScriptSourceCode;
class PumpSession;
-class HTMLDocumentParser : public DocumentParser {
+class HTMLDocumentParser : public DocumentParser, public HTMLScriptRunnerHost {
WTF_MAKE_FAST_ALLOCATED;
public:
static PassRefPtr<HTMLDocumentParser> create(Document& document, bool reportErrors)
@@ -85,6 +85,9 @@ public:
bool isExecutingScript() const override final;
void resumeAfterWaitingForImports() override final;
+ // From HTMLScriptRunnerHost:
+ void scriptExecutionCompleted();
+
private:
HTMLDocumentParser(Document&, bool reportErrors);
@@ -116,7 +119,7 @@ private:
OwnPtr<HTMLParserScheduler> m_parserScheduler;
TextPosition m_textPosition;
- HTMLScriptRunner m_scriptRunner;
+ OwnPtr<HTMLScriptRunner> m_scriptRunner;
OwnPtr<ParsedChunk> m_lastChunkBeforeScript;
Deque<OwnPtr<ParsedChunk> > m_pendingChunks;

Powered by Google App Engine
This is Rietveld 408576698