| 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 b0a76c420e6315f8bc2216dcc3b4e223d16cf1fd..1f1e4bf62fd081836b80f4aec997b088476d21c6 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)
|
|
|