| Index: ui/gfx/point_base.h
|
| diff --git a/ui/gfx/point_base.h b/ui/gfx/point_base.h
|
| index 56a376bd6594284f8b4371ec3f2d33d6224bde1c..048b0930b2dae3f8a24ba2404bda1d8ca8d25894 100644
|
| --- a/ui/gfx/point_base.h
|
| +++ b/ui/gfx/point_base.h
|
| @@ -43,14 +43,14 @@ class UI_EXPORT PointBase {
|
| y_ -= vector.y();
|
| }
|
|
|
| - void ClampToMax(const Class& max) {
|
| - x_ = x_ <= max.x_ ? x_ : max.x_;
|
| - y_ = y_ <= max.y_ ? y_ : max.y_;
|
| + void SetToMin(const Class& other) {
|
| + x_ = x_ <= other.x_ ? x_ : other.x_;
|
| + y_ = y_ <= other.y_ ? y_ : other.y_;
|
| }
|
|
|
| - void ClampToMin(const Class& min) {
|
| - x_ = x_ >= min.x_ ? x_ : min.x_;
|
| - y_ = y_ >= min.y_ ? y_ : min.y_;
|
| + void SetToMax(const Class& other) {
|
| + x_ = x_ >= other.x_ ? x_ : other.x_;
|
| + y_ = y_ >= other.y_ ? y_ : other.y_;
|
| }
|
|
|
| bool IsOrigin() const {
|
|
|