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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.cpp

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/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;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698