| Index: Source/core/dom/ScriptLoader.h
|
| diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h
|
| index 8505253716d5e551584752e02e86cf453245231a..3b1d379d46bb636dc615ee99af4a903f634ff143 100644
|
| --- a/Source/core/dom/ScriptLoader.h
|
| +++ b/Source/core/dom/ScriptLoader.h
|
| @@ -61,7 +61,8 @@ public:
|
| // XML parser calls these
|
| void dispatchLoadEvent();
|
| void dispatchErrorEvent();
|
| - bool isScriptTypeSupported(LegacyTypeSupport) const;
|
| + enum ScriptType { ScriptNone = 0, ScriptJavaScript, ScriptDart };
|
| + ScriptType isScriptTypeSupported(LegacyTypeSupport) const;
|
|
|
| bool haveFiredLoadEvent() const { return m_haveFiredLoad; }
|
| bool willBeParserExecuted() const { return m_willBeParserExecuted; }
|
| @@ -80,6 +81,7 @@ public:
|
| void handleSourceAttribute(const String& sourceUrl);
|
| void handleAsyncAttribute();
|
|
|
| + WTF::OrdinalNumber startLineNumber() { return m_startLineNumber; }
|
| virtual bool isReady() const { return m_pendingScript.isReady(); }
|
|
|
| // Clears the connection to the PendingScript (and Element and Resource).
|
| @@ -116,6 +118,7 @@ private:
|
| bool m_willExecuteWhenDocumentFinishedParsing : 1;
|
| bool m_forceAsync : 1;
|
| bool m_willExecuteInOrder : 1;
|
| + ScriptType m_scriptType;
|
| };
|
|
|
| ScriptLoader* toScriptLoaderIfPossible(Element*);
|
|
|