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

Unified Diff: ui/gfx/geometry/size.h

Issue 649203003: Type conversion fixes, ui/gfx/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SkIntToMScalar Created 6 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: ui/gfx/geometry/size.h
diff --git a/ui/gfx/geometry/size.h b/ui/gfx/geometry/size.h
index 7f2a9037a498ff8a2244c526a14bddd0f6cd380f..74857c521e27d18c5ea61f57798958f4a46f1309 100644
--- a/ui/gfx/geometry/size.h
+++ b/ui/gfx/geometry/size.h
@@ -67,7 +67,7 @@ class GFX_EXPORT Size {
bool IsEmpty() const { return !width() || !height(); }
operator SizeF() const {
- return SizeF(width(), height());
+ return SizeF(static_cast<float>(width()), static_cast<float>(height()));
}
std::string ToString() const;

Powered by Google App Engine
This is Rietveld 408576698