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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index d810f8209bd59bb5d48bb08144e425ef844f10cb..5f05a189c8ffab08a3ac2c9f8a53d4cd94792495 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1026,14 +1026,14 @@ void ComputedStyle::setBoxShadow(PassRefPtr<ShadowList> s)
static FloatRoundedRect::Radii calcRadiiFor(const BorderData& border, LayoutSize size)
{
return FloatRoundedRect::Radii(
- IntSize(valueForLength(border.topLeft().width(), size.width()),
- valueForLength(border.topLeft().height(), size.height())),
- IntSize(valueForLength(border.topRight().width(), size.width()),
- valueForLength(border.topRight().height(), size.height())),
- IntSize(valueForLength(border.bottomLeft().width(), size.width()),
- valueForLength(border.bottomLeft().height(), size.height())),
- IntSize(valueForLength(border.bottomRight().width(), size.width()),
- valueForLength(border.bottomRight().height(), size.height())));
+ FloatSize(floatValueForLength(border.topLeft().width(), size.width().toFloat()),
+ floatValueForLength(border.topLeft().height(), size.height().toFloat())),
+ FloatSize(floatValueForLength(border.topRight().width(), size.width().toFloat()),
+ floatValueForLength(border.topRight().height(), size.height().toFloat())),
+ FloatSize(floatValueForLength(border.bottomLeft().width(), size.width().toFloat()),
+ floatValueForLength(border.bottomLeft().height(), size.height().toFloat())),
+ FloatSize(floatValueForLength(border.bottomRight().width(), size.width().toFloat()),
+ floatValueForLength(border.bottomRight().height(), size.height().toFloat())));
}
StyleImage* ComputedStyle::listStyleImage() const { return rareInheritedData->listStyleImage.get(); }
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterMac.mm ('k') | third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698