| Index: ui/gfx/point_conversions.cc
|
| diff --git a/ui/gfx/point_conversions.cc b/ui/gfx/point_conversions.cc
|
| index f7845a03f41911528d8572304345d0cfe4d9353a..e48116be9bbd4e93ea52ae8e1b741d62ba131d63 100644
|
| --- a/ui/gfx/point_conversions.cc
|
| +++ b/ui/gfx/point_conversions.cc
|
| @@ -14,6 +14,14 @@ Point ToFlooredPoint(const PointF& point) {
|
| return Point(x, y);
|
| }
|
|
|
| +Rect ToFlooredRect(const RectF& rect) {
|
| + int x = ToFlooredInt(rect.x());
|
| + int y = ToFlooredInt(rect.y());
|
| + int width = ToFlooredInt(rect.width());
|
| + int height = ToFlooredInt(rect.height());
|
| + return Rect(x, y, width, height);
|
| +}
|
| +
|
| Point ToCeiledPoint(const PointF& point) {
|
| int x = ToCeiledInt(point.x());
|
| int y = ToCeiledInt(point.y());
|
|
|