diff options
Diffstat (limited to 'WebCore/html/HTMLBodyElement.cpp')
-rw-r--r-- | WebCore/html/HTMLBodyElement.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/html/HTMLBodyElement.cpp b/WebCore/html/HTMLBodyElement.cpp index 7dca064..a23f9be 100644 --- a/WebCore/html/HTMLBodyElement.cpp +++ b/WebCore/html/HTMLBodyElement.cpp @@ -40,9 +40,10 @@ namespace WebCore { using namespace HTMLNames; -HTMLBodyElement::HTMLBodyElement(Document* doc) - : HTMLElement(bodyTag, doc) +HTMLBodyElement::HTMLBodyElement(const QualifiedName& tagName, Document* doc) + : HTMLElement(tagName, doc) { + ASSERT(hasTagName(bodyTag)); } HTMLBodyElement::~HTMLBodyElement() @@ -295,9 +296,11 @@ int HTMLBodyElement::scrollWidth() const return view ? view->contentsWidth() : 0; } -void HTMLBodyElement::getSubresourceAttributeStrings(Vector<String>& urls) const +void HTMLBodyElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { - urls.append(background()); + HTMLElement::addSubresourceAttributeURLs(urls); + + addSubresourceURL(urls, document()->completeURL(background())); } } |