| Index: ui/gfx/vector2d_f.h
|
| diff --git a/ui/gfx/vector2d_f.h b/ui/gfx/vector2d_f.h
|
| index 72e1b00b86c6af36592f7ecb858ee2578eee53bd..fdd3a9e30841cc0681ebaf509d0a9d1ba17dde4a 100644
|
| --- a/ui/gfx/vector2d_f.h
|
| +++ b/ui/gfx/vector2d_f.h
|
| @@ -38,14 +38,14 @@ class UI_EXPORT Vector2dF {
|
| void operator+=(const Vector2dF& other) { Add(other); }
|
| void operator-=(const Vector2dF& other) { Subtract(other); }
|
|
|
| - void ClampToMax(const Vector2dF& max) {
|
| - x_ = x_ <= max.x_ ? x_ : max.x_;
|
| - y_ = y_ <= max.y_ ? y_ : max.y_;
|
| + void SetToMin(const Vector2dF& other) {
|
| + x_ = x_ <= other.x_ ? x_ : other.x_;
|
| + y_ = y_ <= other.y_ ? y_ : other.y_;
|
| }
|
|
|
| - void ClampToMin(const Vector2dF& min) {
|
| - x_ = x_ >= min.x_ ? x_ : min.x_;
|
| - y_ = y_ >= min.y_ ? y_ : min.y_;
|
| + void SetToMax(const Vector2dF& other) {
|
| + x_ = x_ >= other.x_ ? x_ : other.x_;
|
| + y_ = y_ >= other.y_ ? y_ : other.y_;
|
| }
|
|
|
| // Gives the square of the diagonal length of the vector.
|
|
|