Index: Source/core/svg/SVGLinearGradientElement.cpp |
diff --git a/Source/core/svg/SVGLinearGradientElement.cpp b/Source/core/svg/SVGLinearGradientElement.cpp |
index ec179a385526916dca8f71c8fa2d61ca6eb72ba9..5d5a8076cc303e27dd84fbe769d35f0283995257 100644 |
--- a/Source/core/svg/SVGLinearGradientElement.cpp |
+++ b/Source/core/svg/SVGLinearGradientElement.cpp |
@@ -166,7 +166,7 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute |
processedGradients.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::linearGradientTag) || refNode->hasTagName(SVGNames::radialGradientTag))) { |
current = toSVGGradientElement(refNode); |