| 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 32e7214321d0b444c432c2a8d34b1185fbba1c22..d87bd1faf0d93441358a3ccd96c0d8b124112f94 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);
|
|
|
|
|