| Index: third_party/WebKit/Source/platform/LayoutUnit.h
|
| diff --git a/third_party/WebKit/Source/platform/LayoutUnit.h b/third_party/WebKit/Source/platform/LayoutUnit.h
|
| index 6dc55022c396d84018b473653d709d7886c6ea4c..ddae437f424dfc4a51a650c82b0c997624a37062 100644
|
| --- a/third_party/WebKit/Source/platform/LayoutUnit.h
|
| +++ b/third_party/WebKit/Source/platform/LayoutUnit.h
|
| @@ -158,11 +158,16 @@ public:
|
| return m_value >> kLayoutUnitFractionalBits;
|
| }
|
|
|
| - LayoutUnit clampToZero() const
|
| + LayoutUnit clampNegativeToZero() const
|
| {
|
| return std::max(*this, LayoutUnit());
|
| }
|
|
|
| + LayoutUnit clampPositiveToZero() const
|
| + {
|
| + return std::min(*this, LayoutUnit());
|
| + }
|
| +
|
| LayoutUnit fraction() const
|
| {
|
| // Add the fraction to the size (as opposed to the full location) to avoid overflows.
|
|
|