| Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| index 58eaf8e98cf42bbe6c34a16f97ecddc992b1074b..db1b2e37be160fdac3ee4b7612f67dc9c6f45996 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| @@ -281,7 +281,7 @@ void LayoutTable::updateLogicalWidth()
|
| LayoutUnit marginTotal = marginStart + marginEnd;
|
|
|
| // Subtract out our margins to get the available content width.
|
| - LayoutUnit availableContentLogicalWidth = std::max<LayoutUnit>(0, containerWidthInInlineDirection - marginTotal);
|
| + LayoutUnit availableContentLogicalWidth = (containerWidthInInlineDirection - marginTotal).clampNegativeToZero();
|
| if (shrinkToAvoidFloats() && cb->isLayoutBlockFlow() && toLayoutBlockFlow(cb)->containsFloats() && !hasPerpendicularContainingBlock)
|
| availableContentLogicalWidth = shrinkLogicalWidthToAvoidFloats(marginStart, marginEnd, toLayoutBlockFlow(cb));
|
|
|
| @@ -356,7 +356,7 @@ LayoutUnit LayoutTable::convertStyleLogicalHeightToComputedHeight(const Length&
|
| } else {
|
| ASSERT_NOT_REACHED();
|
| }
|
| - return std::max<LayoutUnit>(0, computedLogicalHeight);
|
| + return computedLogicalHeight.clampNegativeToZero();
|
| }
|
|
|
| void LayoutTable::layoutCaption(LayoutTableCaption& caption)
|
|
|