Add pending resource even if others are pending
https://bugs.webkit.org/show_bug.cgi?id=89633
Reviewed by Dirk Schulze.
Source/WebCore:
An element can have multiple simultaneous pending resources but some of
this code was legacy, before the hasPendingResource()->hasPendingResources()
change (r105573). This patch continues adding a pending resource even if
there are other pending resources. In some cases, this can lead to marking
a resource as pending twice but the performance impact of that is negligible.
Other than SVGUseElement, SVGTrefElement and SVGFEImageElement are also
changed. These elements are unaffected because they can only have
a single resource at the moment (href), with other Style url() references
being handled by their parent containers.
Tests: svg/custom/use-multiple-pending-resources-expected.svg
svg/custom/use-multiple-pending-resources.svg
* svg/SVGFEImageElement.cpp:
(WebCore::SVGFEImageElement::buildPendingResource):
* svg/SVGTRefElement.cpp:
(WebCore::SVGTRefElement::detachTarget):
(WebCore::SVGTRefElement::buildPendingResource):
* svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::buildPendingResource):
LayoutTests:
* svg/custom/use-multiple-pending-resources-expected.svg: Added.
* svg/custom/use-multiple-pending-resources.svg: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120951
268f45cc-cd09-0410-ab3c-
d52691b4dbfc