Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp |
index 7d231501329320746263d5773f2bf4beb0ed5e99..d79ca19dd40aa535de55ed6a62f56ac28d71a5aa 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp |
@@ -31,11 +31,11 @@ LayoutSVGResourceLinearGradient::LayoutSVGResourceLinearGradient( |
LayoutSVGResourceLinearGradient::~LayoutSVGResourceLinearGradient() {} |
-bool LayoutSVGResourceLinearGradient::collectGradientAttributes( |
- SVGGradientElement* gradientElement) { |
+bool LayoutSVGResourceLinearGradient::collectGradientAttributes() { |
+ DCHECK(element()); |
m_attributesWrapper->set(LinearGradientAttributes()); |
- return toSVGLinearGradientElement(gradientElement) |
- ->collectGradientAttributes(mutableAttributes()); |
+ return toSVGLinearGradientElement(element())->collectGradientAttributes( |
+ mutableAttributes()); |
} |
FloatPoint LayoutSVGResourceLinearGradient::startPoint( |