Index: Source/core/svg/SVGPatternElement.cpp |
diff --git a/Source/core/svg/SVGPatternElement.cpp b/Source/core/svg/SVGPatternElement.cpp |
index ce0e4565cd8187858ca2201e825c223b25371b08..aeedfb47fa2cebab4c0d1db9c6e35f692f1aab35 100644 |
--- a/Source/core/svg/SVGPatternElement.cpp |
+++ b/Source/core/svg/SVGPatternElement.cpp |
@@ -217,7 +217,7 @@ void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes) |
processedPatterns.add(current); |
// Respect xlink:href, take attributes from referenced element |
- Node* refNode = SVGURIReference::targetElementFromIRIString(current->hrefCurrentValue(), &document()); |
+ Node* refNode = SVGURIReference::targetElementFromIRIString(current->hrefCurrentValue(), document()); |
if (refNode && refNode->hasTagName(SVGNames::patternTag)) { |
current = static_cast<const SVGPatternElement*>(const_cast<const Node*>(refNode)); |