| Index: third_party/WebKit/Source/platform/geometry/LayoutRect.h
|
| diff --git a/third_party/WebKit/Source/platform/geometry/LayoutRect.h b/third_party/WebKit/Source/platform/geometry/LayoutRect.h
|
| index 45a93ddfba7007bd14ba9133f2ec5f02cf7ff8c6..f1418a96655e54fdcba275a4c4c02abf90cf5d6c 100644
|
| --- a/third_party/WebKit/Source/platform/geometry/LayoutRect.h
|
| +++ b/third_party/WebKit/Source/platform/geometry/LayoutRect.h
|
| @@ -121,23 +121,23 @@ public:
|
| {
|
| LayoutUnit delta = edge - x();
|
| setX(edge);
|
| - setWidth(std::max<LayoutUnit>(0, width() - delta));
|
| + setWidth((width() - delta).clampToZero());
|
| }
|
| void shiftMaxXEdgeTo(LayoutUnit edge)
|
| {
|
| LayoutUnit delta = edge - maxX();
|
| - setWidth(std::max<LayoutUnit>(0, width() + delta));
|
| + setWidth((width() + delta).clampToZero());
|
| }
|
| void shiftYEdgeTo(LayoutUnit edge)
|
| {
|
| LayoutUnit delta = edge - y();
|
| setY(edge);
|
| - setHeight(std::max<LayoutUnit>(0, height() - delta));
|
| + setHeight((height() - delta).clampToZero());
|
| }
|
| void shiftMaxYEdgeTo(LayoutUnit edge)
|
| {
|
| LayoutUnit delta = edge - maxY();
|
| - setHeight(std::max<LayoutUnit>(0, height() + delta));
|
| + setHeight((height() + delta).clampToZero());
|
| }
|
|
|
| LayoutPoint minXMinYCorner() const { return m_location; } // typically topLeft
|
|
|