| Index: Source/core/dom/ScriptRunner.h
|
| diff --git a/Source/core/dom/ScriptRunner.h b/Source/core/dom/ScriptRunner.h
|
| index 1790764ae3aa4a9be7c4edcf917761861763d72f..6cbb2b90148acfd4a15b9f914e4a1e28d53b6a3d 100644
|
| --- a/Source/core/dom/ScriptRunner.h
|
| +++ b/Source/core/dom/ScriptRunner.h
|
| @@ -38,7 +38,7 @@ namespace WebCore {
|
| class CachedScript;
|
| class Document;
|
| class PendingScript;
|
| -class ScriptElement;
|
| +class ScriptLoader;
|
|
|
| class ScriptRunner {
|
| WTF_MAKE_NONCOPYABLE(ScriptRunner); WTF_MAKE_FAST_ALLOCATED;
|
| @@ -47,11 +47,11 @@ public:
|
| ~ScriptRunner();
|
|
|
| enum ExecutionType { ASYNC_EXECUTION, IN_ORDER_EXECUTION };
|
| - void queueScriptForExecution(ScriptElement*, CachedResourceHandle<CachedScript>, ExecutionType);
|
| + void queueScriptForExecution(ScriptLoader*, CachedResourceHandle<CachedScript>, ExecutionType);
|
| bool hasPendingScripts() const { return !m_scriptsToExecuteSoon.isEmpty() || !m_scriptsToExecuteInOrder.isEmpty() || !m_pendingAsyncScripts.isEmpty(); }
|
| void suspend();
|
| void resume();
|
| - void notifyScriptReady(ScriptElement*, ExecutionType);
|
| + void notifyScriptReady(ScriptLoader*, ExecutionType);
|
|
|
| private:
|
| explicit ScriptRunner(Document*);
|
| @@ -61,7 +61,7 @@ private:
|
| Document* m_document;
|
| Vector<PendingScript> m_scriptsToExecuteInOrder;
|
| Vector<PendingScript> m_scriptsToExecuteSoon; // http://www.whatwg.org/specs/web-apps/current-work/#set-of-scripts-that-will-execute-as-soon-as-possible
|
| - HashMap<ScriptElement*, PendingScript> m_pendingAsyncScripts;
|
| + HashMap<ScriptLoader*, PendingScript> m_pendingAsyncScripts;
|
| Timer<ScriptRunner> m_timer;
|
| };
|
|
|
|
|