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 f8fd072314a06f65754c9f9277faa8a0d42a32cd..16677770cb0f7be5762cf5721fd9ef0027c4a294 100644 |
--- a/third_party/WebKit/Source/platform/LayoutUnit.h |
+++ b/third_party/WebKit/Source/platform/LayoutUnit.h |
@@ -644,12 +644,8 @@ inline float operator-(const float a, const LayoutUnit& b) |
inline LayoutUnit operator-(const LayoutUnit& a) |
{ |
- // -min() is saturated to max(). |
- if (a == LayoutUnit::min()) |
- return LayoutUnit::max(); |
- |
LayoutUnit returnVal; |
- returnVal.setRawValue(-a.rawValue()); |
+ returnVal.setRawValue(saturatedNegative(a.rawValue())); |
return returnVal; |
} |