summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/ScriptElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/ScriptElement.h')
-rw-r--r--WebCore/dom/ScriptElement.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/WebCore/dom/ScriptElement.h b/WebCore/dom/ScriptElement.h
index 07c59db..b6beb6e 100644
--- a/WebCore/dom/ScriptElement.h
+++ b/WebCore/dom/ScriptElement.h
@@ -51,12 +51,11 @@ public:
virtual void dispatchLoadEvent() = 0;
virtual void dispatchErrorEvent() = 0;
- bool haveFiredLoadEvent() const { return m_haveFiredLoad; }
-
protected:
- void setHaveFiredLoadEvent(bool haveFiredLoad) { m_haveFiredLoad = haveFiredLoad; }
- bool wasInsertedByParser() const { return m_wasInsertedByParser; }
- bool wasAlreadyStarted() const { return m_wasAlreadyStarted; }
+ bool haveFiredLoadEvent() const { return m_firedLoad; }
+ void setHaveFiredLoadEvent(bool firedLoad) { m_firedLoad = firedLoad; }
+ bool createdByParser() const { return m_createdByParser; }
+ bool isEvaluated() const { return m_isEvaluated; }
// Helper functions used by our parent classes.
void insertedIntoDocument(const String& sourceUrl);
@@ -86,10 +85,10 @@ private:
Element* m_element;
CachedResourceHandle<CachedScript> m_cachedScript;
- bool m_wasInsertedByParser;
- bool m_isExternalScript;
- bool m_wasAlreadyStarted;
- bool m_haveFiredLoad;
+ bool m_createdByParser; // HTML5: "parser-inserted"
+ bool m_requested;
+ bool m_isEvaluated; // HTML5: "already started"
+ bool m_firedLoad;
};
ScriptElement* toScriptElement(Element*);