Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp

Issue 2749593002: Remove argument to LayoutSVGResourceGradient::collectGradientAttributes (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698