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

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

Issue 649203003: Type conversion fixes, ui/gfx/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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
« no previous file with comments | « ui/gfx/display.cc ('k') | ui/gfx/geometry/matrix3_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/insets.h
diff --git a/ui/gfx/geometry/insets.h b/ui/gfx/geometry/insets.h
index 01379193167f042d0b9b89cb27ea721e662fd29d..6e9c70bd89c1106002e9ca8ef4e927e5679bbddb 100644
--- a/ui/gfx/geometry/insets.h
+++ b/ui/gfx/geometry/insets.h
@@ -34,7 +34,8 @@ class GFX_EXPORT Insets : public InsetsBase<Insets, int> {
}
operator InsetsF() const {
- return InsetsF(top(), left(), bottom(), right());
+ return InsetsF(static_cast<float>(top()), static_cast<float>(left()),
+ static_cast<float>(bottom()), static_cast<float>(right()));
}
// Returns a string representation of the insets.
« no previous file with comments | « ui/gfx/display.cc ('k') | ui/gfx/geometry/matrix3_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698