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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceLinearGradient.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 | « no previous file | Source/core/layout/svg/LayoutSVGResourcePattern.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp b/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
index 837e46235be6c74a04ca48b261ac54fad5b8a555..1c5415951db3bd35c332307a4aeab22e733dc174 100644
--- a/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceLinearGradient.cpp
@@ -50,12 +50,12 @@ bool LayoutSVGResourceLinearGradient::collectGradientAttributes(SVGGradientEleme
FloatPoint LayoutSVGResourceLinearGradient::startPoint(const LinearGradientAttributes& attributes) const
{
- return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.x1(), attributes.y1());
+ return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), *attributes.x1(), *attributes.y1());
}
FloatPoint LayoutSVGResourceLinearGradient::endPoint(const LinearGradientAttributes& attributes) const
{
- return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.x2(), attributes.y2());
+ return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), *attributes.x2(), *attributes.y2());
}
void LayoutSVGResourceLinearGradient::buildGradient(GradientData* gradientData) const
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGResourcePattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698