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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp

Issue 921823002: Use SVGLength-references in the SVGLengthContext API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePattern.cpp ('k') | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp b/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
index d16461f7cfeeb1c084208029e2cc8c46a1794f40..3725146ee9a768f77afca6a20eca65f438c8fe2f 100644
--- a/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceRadialGradient.cpp
@@ -51,22 +51,22 @@ bool LayoutSVGResourceRadialGradient::collectGradientAttributes(SVGGradientEleme
FloatPoint LayoutSVGResourceRadialGradient::centerPoint(const RadialGradientAttributes& attributes) const
{
- return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.cx(), attributes.cy());
+ return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), *attributes.cx(), *attributes.cy());
}
FloatPoint LayoutSVGResourceRadialGradient::focalPoint(const RadialGradientAttributes& attributes) const
{
- return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.fx(), attributes.fy());
+ return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), *attributes.fx(), *attributes.fy());
}
float LayoutSVGResourceRadialGradient::radius(const RadialGradientAttributes& attributes) const
{
- return SVGLengthContext::resolveLength(element(), attributes.gradientUnits(), attributes.r());
+ return SVGLengthContext::resolveLength(element(), attributes.gradientUnits(), *attributes.r());
}
float LayoutSVGResourceRadialGradient::focalRadius(const RadialGradientAttributes& attributes) const
{
- return SVGLengthContext::resolveLength(element(), attributes.gradientUnits(), attributes.fr());
+ return SVGLengthContext::resolveLength(element(), attributes.gradientUnits(), *attributes.fr());
}
void LayoutSVGResourceRadialGradient::buildGradient(GradientData* gradientData) const
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePattern.cpp ('k') | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698