Index: third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp b/third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp |
index ffcde3df647e1c5efed20c04e8564a7a0e6abee9..d41a8cfe79af2de57cee6ad81d6c7a4ea327bfc7 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp |
@@ -34,8 +34,6 @@ |
#include "core/css/resolver/StyleResolverState.h" |
#include "core/frame/UseCounter.h" |
#include "core/layout/svg/ReferenceFilterBuilder.h" |
-#include "core/svg/SVGElement.h" |
-#include "core/svg/SVGURIReference.h" |
namespace blink { |
@@ -139,7 +137,7 @@ FilterOperations FilterOperationResolver::createFilterOperations(StyleResolverSt |
KURL url = state.document().completeURL(svgDocumentValue.url()); |
ReferenceFilterOperation* operation = ReferenceFilterOperation::create(svgDocumentValue.url(), AtomicString(url.fragmentIdentifier())); |
- if (SVGURIReference::isExternalURIReference(svgDocumentValue.url(), state.document())) { |
+ if (!equalIgnoringFragmentIdentifier(url, state.document().url())) { |
if (!svgDocumentValue.loadRequested()) |
state.elementStyleResources().addPendingSVGDocument(operation, &svgDocumentValue); |
else if (svgDocumentValue.cachedSVGDocument()) |