diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/svg/SVGImageElement.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/svg/SVGImageElement.cpp')
-rw-r--r-- | WebCore/svg/SVGImageElement.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/svg/SVGImageElement.cpp b/WebCore/svg/SVGImageElement.cpp index d7daebc..c827c89 100644 --- a/WebCore/svg/SVGImageElement.cpp +++ b/WebCore/svg/SVGImageElement.cpp @@ -108,7 +108,7 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName) renderer()->setNeedsLayout(true); if (isURIAttribute) - m_imageLoader.updateFromElement(); + m_imageLoader.updateFromElementIgnoringPreviousError(); } } @@ -118,7 +118,7 @@ bool SVGImageElement::hasRelativeValues() const y().isRelative() || height().isRelative()); } -RenderObject* SVGImageElement::createRenderer(RenderArena* arena, RenderStyle* style) +RenderObject* SVGImageElement::createRenderer(RenderArena* arena, RenderStyle*) { return new (arena) RenderSVGImage(this); } @@ -154,9 +154,11 @@ const QualifiedName& SVGImageElement::imageSourceAttributeName() const return XLinkNames::hrefAttr; } -void SVGImageElement::getSubresourceAttributeStrings(Vector<String>& urls) const +void SVGImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { - urls.append(href()); + SVGStyledTransformableElement::addSubresourceAttributeURLs(urls); + + addSubresourceURL(urls, document()->completeURL(href())); } } |