| Index: third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| index 554dd56f02e6a7f27964a87cb991eb8c92460a91..dea30d9373489093bfb81f862b24634064ba5966 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
| @@ -1473,7 +1473,8 @@ void LayoutGrid::applyStretchAlignmentToChildIfNeeded(LayoutBox& child) {
|
| LayoutUnit desiredLogicalHeight = child.constrainLogicalHeightByMinMax(
|
| stretchedLogicalHeight, LayoutUnit(-1));
|
| child.setOverrideLogicalContentHeight(
|
| - desiredLogicalHeight - child.borderAndPaddingLogicalHeight());
|
| + (desiredLogicalHeight - child.borderAndPaddingLogicalHeight())
|
| + .clampNegativeToZero());
|
| if (desiredLogicalHeight != child.logicalHeight()) {
|
| // TODO (lajava): Can avoid laying out here in some cases. See
|
| // https://webkit.org/b/87905.
|
|
|