| Index: third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp b/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| index a9820a006c6f43805610e409168784b20d9565df..b6082f113ab7e06332aa7c579ed6cfcd371de530 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| @@ -226,7 +226,7 @@ LayoutUnit RootInlineBox::alignBoxesInBlockDirection(LayoutUnit heightOfBlock, G
|
| m_hasAnnotationsBefore = hasAnnotationsBefore;
|
| m_hasAnnotationsAfter = hasAnnotationsAfter;
|
|
|
| - maxHeight = std::max<LayoutUnit>(0, maxHeight);
|
| + maxHeight = maxHeight.clampNegativeToZero();
|
|
|
| setLineTopBottomPositions(lineTop, lineBottom, heightOfBlock, heightOfBlock + maxHeight, selectionBottom);
|
|
|
|
|