| Index: ui/gfx/rect_f.h
|
| diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
|
| index 499c9be4908eecedcb79ee5346e31ecdab1dd972..b3734f960995474c02b4ac1b2d3c323e11c584e3 100644
|
| --- a/ui/gfx/rect_f.h
|
| +++ b/ui/gfx/rect_f.h
|
| @@ -40,6 +40,12 @@ class UI_EXPORT RectF
|
| set_size(newSize);
|
| }
|
|
|
| + // This method reports if the RectF can be safely converted to an integer
|
| + // Rect. When it is false, some dimension of the RectF is outside the bounds
|
| + // of what an integer can represent, and converting it to a Rect will require
|
| + // clamping.
|
| + bool IsExpressibleAsRect() const;
|
| +
|
| std::string ToString() const;
|
| };
|
|
|
|
|