| Index: third_party/WebKit/Source/core/css/CSSGradientValue.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
|
| index cd3e3fd52ff5625cd9196f428d2ddec7e7d1850f..687ade42bc1fcefdb9b4547fd1e768b3f3901ae2 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
|
| @@ -1132,22 +1132,23 @@ PassRefPtr<Gradient> CSSRadialGradientValue::createGradient(const CSSToLengthCon
|
| ? CircleEndShape
|
| : EllipseEndShape;
|
|
|
| + FloatSize floatSize(size);
|
| switch (m_sizingBehavior ? m_sizingBehavior->getValueID() : 0) {
|
| case CSSValueContain:
|
| case CSSValueClosestSide:
|
| - secondRadius = radiusToSide(secondPoint, size, shape,
|
| + secondRadius = radiusToSide(secondPoint, floatSize, shape,
|
| [] (float a, float b) { return a < b; });
|
| break;
|
| case CSSValueFarthestSide:
|
| - secondRadius = radiusToSide(secondPoint, size, shape,
|
| + secondRadius = radiusToSide(secondPoint, floatSize, shape,
|
| [] (float a, float b) { return a > b; });
|
| break;
|
| case CSSValueClosestCorner:
|
| - secondRadius = radiusToCorner(secondPoint, size, shape,
|
| + secondRadius = radiusToCorner(secondPoint, floatSize, shape,
|
| [] (float a, float b) { return a < b; });
|
| break;
|
| default:
|
| - secondRadius = radiusToCorner(secondPoint, size, shape,
|
| + secondRadius = radiusToCorner(secondPoint, floatSize, shape,
|
| [] (float a, float b) { return a > b; });
|
| break;
|
| }
|
|
|