summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLParamElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLParamElement.cpp')
-rw-r--r--WebCore/html/HTMLParamElement.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/WebCore/html/HTMLParamElement.cpp b/WebCore/html/HTMLParamElement.cpp
index 0c9d593..6e1197b 100644
--- a/WebCore/html/HTMLParamElement.cpp
+++ b/WebCore/html/HTMLParamElement.cpp
@@ -30,9 +30,10 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLParamElement::HTMLParamElement(Document* doc)
- : HTMLElement(paramTag, doc)
+HTMLParamElement::HTMLParamElement(const QualifiedName& tagName, Document* doc)
+ : HTMLElement(tagName, doc)
{
+ ASSERT(hasTagName(paramTag));
}
HTMLParamElement::~HTMLParamElement()
@@ -98,14 +99,16 @@ void HTMLParamElement::setValueType(const String& value)
setAttribute(valuetypeAttr, value);
}
-void HTMLParamElement::getSubresourceAttributeStrings(Vector<String>& urls) const
+void HTMLParamElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
{
+ HTMLElement::addSubresourceAttributeURLs(urls);
+
if (!equalIgnoringCase(name(), "data") &&
!equalIgnoringCase(name(), "movie") &&
!equalIgnoringCase(name(), "src"))
return;
-
- urls.append(value());
+
+ addSubresourceURL(urls, document()->completeURL(value()));
}
}