| Index: ui/gfx/rect_conversions.cc
|
| diff --git a/ui/gfx/rect_conversions.cc b/ui/gfx/rect_conversions.cc
|
| index ac7767b3204de84881b752a43c5c4a09d3e18744..bd980df782dc8cb714e3b2ae40cd6c7a3e29d16c 100644
|
| --- a/ui/gfx/rect_conversions.cc
|
| +++ b/ui/gfx/rect_conversions.cc
|
| @@ -7,10 +7,16 @@
|
| #include <cmath>
|
|
|
| #include "base/logging.h"
|
| +#include "ui/gfx/point_conversions.h"
|
| #include "ui/gfx/safe_integer_conversions.h"
|
| +#include "ui/gfx/size_conversions.h"
|
|
|
| namespace gfx {
|
|
|
| +Rect ToSizedRect(const RectF& rect) {
|
| + return Rect(ToFlooredPoint(rect.origin()),ToCeiledSize(rect.size()));
|
| +}
|
| +
|
| Rect ToEnclosingRect(const RectF& rect) {
|
| int min_x = ToFlooredInt(rect.x());
|
| int min_y = ToFlooredInt(rect.y());
|
|
|