summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLScriptElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLScriptElement.cpp')
-rw-r--r--WebCore/html/HTMLScriptElement.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/WebCore/html/HTMLScriptElement.cpp b/WebCore/html/HTMLScriptElement.cpp
index ce334d7..4744b34 100644
--- a/WebCore/html/HTMLScriptElement.cpp
+++ b/WebCore/html/HTMLScriptElement.cpp
@@ -32,10 +32,12 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLScriptElement::HTMLScriptElement(Document* doc)
- : HTMLElement(scriptTag, doc)
+HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* doc, bool createdByParser)
+ : HTMLElement(tagName, doc)
, m_data(this, this)
{
+ ASSERT(hasTagName(scriptTag));
+ m_data.setCreatedByParser(createdByParser);
}
HTMLScriptElement::~HTMLScriptElement()
@@ -47,11 +49,6 @@ bool HTMLScriptElement::isURLAttribute(Attribute* attr) const
return attr->name() == sourceAttributeValue();
}
-void HTMLScriptElement::setCreatedByParser(bool createdByParser)
-{
- m_data.setCreatedByParser(createdByParser);
-}
-
bool HTMLScriptElement::shouldExecuteAsJavaScript() const
{
return m_data.shouldExecuteAsJavaScript();
@@ -186,9 +183,11 @@ String HTMLScriptElement::scriptContent() const
return m_data.scriptContent();
}
-void HTMLScriptElement::getSubresourceAttributeStrings(Vector<String>& urls) const
+void HTMLScriptElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
{
- urls.append(src().string());
+ HTMLElement::addSubresourceAttributeURLs(urls);
+
+ addSubresourceURL(urls, src());
}
String HTMLScriptElement::sourceAttributeValue() const