summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLScriptElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLScriptElement.h')
-rw-r--r--WebCore/html/HTMLScriptElement.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/WebCore/html/HTMLScriptElement.h b/WebCore/html/HTMLScriptElement.h
index f5c3acb..14a1264 100644
--- a/WebCore/html/HTMLScriptElement.h
+++ b/WebCore/html/HTMLScriptElement.h
@@ -29,26 +29,11 @@
namespace WebCore {
-class HTMLScriptElement : public HTMLElement
- , public ScriptElement {
+class HTMLScriptElement : public HTMLElement, public ScriptElement {
public:
- HTMLScriptElement(const QualifiedName&, Document*, bool createdByParser);
- ~HTMLScriptElement();
+ static PassRefPtr<HTMLScriptElement> create(const QualifiedName&, Document*, bool createdByParser);
virtual bool shouldExecuteAsJavaScript() const;
- virtual String scriptContent() const;
-
- virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
- virtual int tagPriority() const { return 1; }
- virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
-
- virtual void parseMappedAttribute(Attribute*);
- virtual void insertedIntoDocument();
- virtual void removedFromDocument();
- virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
-
- virtual bool isURLAttribute(Attribute*) const;
- virtual void finishParsingChildren();
String text() const;
void setText(const String&);
@@ -73,11 +58,27 @@ public:
virtual String scriptCharset() const;
- virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
-
bool haveFiredLoadEvent() const { return m_data.haveFiredLoadEvent(); }
-protected:
+private:
+ HTMLScriptElement(const QualifiedName&, Document*, bool createdByParser);
+
+ virtual String scriptContent() const;
+
+ virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
+ virtual int tagPriority() const { return 1; }
+ virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
+
+ virtual void parseMappedAttribute(Attribute*);
+ virtual void insertedIntoDocument();
+ virtual void removedFromDocument();
+ virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
+
+ virtual bool isURLAttribute(Attribute*) const;
+ virtual void finishParsingChildren();
+
+ virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
+
virtual String sourceAttributeValue() const;
virtual String charsetAttributeValue() const;
virtual String typeAttributeValue() const;
@@ -88,7 +89,6 @@ protected:
virtual void dispatchLoadEvent();
virtual void dispatchErrorEvent();
-private:
ScriptElementData m_data;
};