Index: Source/core/html/HTMLScriptElement.h |
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h |
index 1633c0dac8739403356dbd7949f2dc4497442d5b..704b77e7e33cd7c34f38a2d4006f48e4897c56a1 100644 |
--- a/Source/core/html/HTMLScriptElement.h |
+++ b/Source/core/html/HTMLScriptElement.h |
@@ -24,12 +24,14 @@ |
#ifndef HTMLScriptElement_h |
#define HTMLScriptElement_h |
-#include "core/dom/ScriptElement.h" |
+#include "core/dom/ScriptLoaderClient.h" |
#include "core/html/HTMLElement.h" |
namespace WebCore { |
-class HTMLScriptElement FINAL : public HTMLElement, public ScriptElementClient { |
+class ScriptLoader; |
+ |
+class HTMLScriptElement FINAL : public HTMLElement, public ScriptLoaderClient { |
public: |
static PassRefPtr<HTMLScriptElement> create(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted = false); |
@@ -41,7 +43,7 @@ public: |
void setAsync(bool); |
bool async() const; |
- ScriptElement* scriptElement() const { return m_scriptElement.get(); } |
+ ScriptLoader* loader() const { return m_loader.get(); } |
private: |
HTMLScriptElement(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted); |
@@ -68,7 +70,7 @@ private: |
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); |
- OwnPtr<ScriptElement> m_scriptElement; |
+ OwnPtr<ScriptLoader> m_loader; |
}; |
inline HTMLScriptElement* toHTMLScriptElement(Node* node) |