| Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| index f1023a8fbf36b6075cc938a51c896f6eef4f8ccc..4e5725217cd392a5b434ffe46548b1ece4d47e3d 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| @@ -237,7 +237,8 @@ void SVGUseElement::svgAttributeChanged(const QualifiedName& attrName)
|
| SVGElement::InvalidationGuard invalidationGuard(this);
|
| if (isStructurallyExternal()) {
|
| KURL url = document().completeURL(hrefString());
|
| - if (url.hasFragmentIdentifier()) {
|
| + const KURL& existingURL = m_resource ? m_resource->url() : KURL();
|
| + if (url.hasFragmentIdentifier() && !equalIgnoringFragmentIdentifier(url, existingURL)) {
|
| FetchRequest request(ResourceRequest(url), localName());
|
| setDocumentResource(DocumentResource::fetchSVGDocument(request, document().fetcher()));
|
| }
|
|
|