Chromium Code Reviews| Index: ui/gfx/geometry/size.h |
| diff --git a/ui/gfx/geometry/size.h b/ui/gfx/geometry/size.h |
| index 10b90a5985ec0e35499b9b0dda39340bf6397780..bfe222311b01fc53e9b18cedd42f2d2eeb825793 100644 |
| --- a/ui/gfx/geometry/size.h |
| +++ b/ui/gfx/geometry/size.h |
| @@ -45,7 +45,7 @@ class GFX_EXPORT Size : public SizeBase<Size, int> { |
| #endif |
| operator SizeF() const { |
| - return SizeF(width(), height()); |
| + return SizeF(static_cast<float>(width()), static_cast<float>(height())); |
| } |
| std::string ToString() const; |