Index: Source/core/html/HTMLScriptElement.h |
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h |
index 153f271dd9a9598590f0e95e4f88bb0a4035a869..1633c0dac8739403356dbd7949f2dc4497442d5b 100644 |
--- a/Source/core/html/HTMLScriptElement.h |
+++ b/Source/core/html/HTMLScriptElement.h |
@@ -29,11 +29,11 @@ |
namespace WebCore { |
-class HTMLScriptElement FINAL : public HTMLElement, public ScriptElement { |
+class HTMLScriptElement FINAL : public HTMLElement, public ScriptElementClient { |
public: |
static PassRefPtr<HTMLScriptElement> create(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted = false); |
- String text() const { return scriptContent(); } |
+ String text() { return textFromChildren(); } |
void setText(const String&); |
KURL src() const; |
@@ -41,6 +41,8 @@ public: |
void setAsync(bool); |
bool async() const; |
+ ScriptElement* scriptElement() const { return m_scriptElement.get(); } |
+ |
private: |
HTMLScriptElement(const QualifiedName&, Document*, bool wasInsertedByParser, bool alreadyStarted); |
@@ -65,6 +67,8 @@ private: |
virtual void dispatchLoadEvent(); |
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); |
+ |
+ OwnPtr<ScriptElement> m_scriptElement; |
}; |
inline HTMLScriptElement* toHTMLScriptElement(Node* node) |