Index: ui/gfx/rect_f.cc |
diff --git a/ui/gfx/rect_f.cc b/ui/gfx/rect_f.cc |
index c55752aa843e0dea806df6fe2c98100293c66f7f..d2abc23c421d63d587d6332525f9ae824078ae73 100644 |
--- a/ui/gfx/rect_f.cc |
+++ b/ui/gfx/rect_f.cc |
@@ -19,6 +19,12 @@ template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>; |
typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, |
float> RectBaseT; |
+#if defined(OS_MACOSX) |
+CGRect RectF::ToCGRect() const { |
+ return CGRectMake(x(), y(), width(), height()); |
+} |
+#endif |
+ |
bool RectF::IsExpressibleAsRect() const { |
return IsExpressibleAsInt(x()) && IsExpressibleAsInt(y()) && |
IsExpressibleAsInt(width()) && IsExpressibleAsInt(height()) && |