| Index: ui/gfx/geometry/point_f.cc
|
| diff --git a/ui/gfx/geometry/point_f.cc b/ui/gfx/geometry/point_f.cc
|
| index 9c2ece23a59f34651e06245f41633a5fb2dba142..0d153945936f891af8f4a9214f5c8e8a458d3abe 100644
|
| --- a/ui/gfx/geometry/point_f.cc
|
| +++ b/ui/gfx/geometry/point_f.cc
|
| @@ -8,7 +8,15 @@
|
|
|
| namespace gfx {
|
|
|
| -template class PointBase<PointF, float, Vector2dF>;
|
| +void PointF::SetToMin(const PointF& other) {
|
| + x_ = x_ <= other.x_ ? x_ : other.x_;
|
| + y_ = y_ <= other.y_ ? y_ : other.y_;
|
| +}
|
| +
|
| +void PointF::SetToMax(const PointF& other) {
|
| + x_ = x_ >= other.x_ ? x_ : other.x_;
|
| + y_ = y_ >= other.y_ ? y_ : other.y_;
|
| +}
|
|
|
| std::string PointF::ToString() const {
|
| return base::StringPrintf("%f,%f", x(), y());
|
|
|