summaryrefslogtreecommitdiffstats
path: root/WebCore/html/parser/HTMLScriptRunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/parser/HTMLScriptRunner.h')
-rw-r--r--WebCore/html/parser/HTMLScriptRunner.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/html/parser/HTMLScriptRunner.h b/WebCore/html/parser/HTMLScriptRunner.h
index be21dd2..6cf74d8 100644
--- a/WebCore/html/parser/HTMLScriptRunner.h
+++ b/WebCore/html/parser/HTMLScriptRunner.h
@@ -28,6 +28,7 @@
#include "PendingScript.h"
#include <wtf/Deque.h>
+#include <wtf/text/TextPosition.h>
#include <wtf/Noncopyable.h>
#include <wtf/PassRefPtr.h>
@@ -52,7 +53,7 @@ public:
void detach();
// Processes the passed in script and any pending scripts if possible.
- bool execute(PassRefPtr<Element> scriptToProcess, int scriptStartLine);
+ bool execute(PassRefPtr<Element> scriptToProcess, const TextPosition1& scriptStartPosition);
bool executeScriptsWaitingForLoad(CachedResource*);
bool hasScriptsWaitingForStylesheets() const { return m_hasScriptsWaitingForStylesheets; }
@@ -68,7 +69,6 @@ private:
void executeParsingBlockingScript();
void executePendingScriptAndDispatchEvent(PendingScript&);
- void executeScript(const ScriptSourceCode&) const;
bool haveParsingBlockingScript() const;
bool executeParsingBlockingScripts();
@@ -76,7 +76,7 @@ private:
void requestDeferredScript(Element*);
bool requestPendingScript(PendingScript&, Element*) const;
- void runScript(Element*, int startingLineNumber);
+ void runScript(Element*, const TextPosition1& scriptStartPosition);
// Helpers for dealing with HTMLScriptRunnerHost
void watchForLoad(PendingScript&);