Descriptionui: Add IsExpressibleAsRect() method to RectF
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.
Tests:
ui_unittests:RectTest.IsExpressibleAsRect
R=sky
BUG=147395
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165725
Patch Set 1 #
Total comments: 4
Patch Set 2 : nits #
Messages
Total messages: 7 (0 generated)
|