diff options
Diffstat (limited to 'WebCore/html/HTML5ScriptRunner.h')
-rw-r--r-- | WebCore/html/HTML5ScriptRunner.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/html/HTML5ScriptRunner.h b/WebCore/html/HTML5ScriptRunner.h index c6a03fb..19e70a6 100644 --- a/WebCore/html/HTML5ScriptRunner.h +++ b/WebCore/html/HTML5ScriptRunner.h @@ -47,7 +47,7 @@ public: ~HTML5ScriptRunner(); // Processes the passed in script and any pending scripts if possible. - bool execute(PassRefPtr<Element> scriptToProcess); + bool execute(PassRefPtr<Element> scriptToProcess, int scriptStartLine); // Processes any pending scripts. bool executeScriptsWaitingForLoad(CachedResource*); bool hasScriptsWaitingForStylesheets() const { return m_hasScriptsWaitingForStylesheets; } @@ -59,23 +59,26 @@ private: struct PendingScript { PendingScript() : watchingForLoad(false) + , startingLineNumber(0) { } RefPtr<Element> element; CachedResourceHandle<CachedScript> cachedScript; bool watchingForLoad; // Did we pass the cachedScript to the HTML5ScriptRunnerHost. + int startingLineNumber; // Only used for inline script tags. // HTML5 has an isReady parameter, however isReady ends up equivalent to // m_document->haveStylesheetsLoaded() && cachedScript->isLoaded() }; Frame* frame() const; + bool haveParsingBlockingScript() const; bool executeParsingBlockingScripts(); void executePendingScript(); void requestScript(Element*); - void runScript(Element*); + void runScript(Element*, int startingLineNumber); // Helpers for dealing with HTML5ScriptRunnerHost void watchForLoad(PendingScript&); |