Index: Source/core/svg/SVGRadialGradientElement.cpp |
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp |
index 4929cc24265d5887b5540c0c0458eae61a9065d3..cc0fe2babba8aa98aa198178c923aec88453dd62 100644 |
--- a/Source/core/svg/SVGRadialGradientElement.cpp |
+++ b/Source/core/svg/SVGRadialGradientElement.cpp |
@@ -183,7 +183,7 @@ bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute |
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::radialGradientTag) || refNode->hasTagName(SVGNames::linearGradientTag))) { |
current = toSVGGradientElement(refNode); |