| Index: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| index e859346c655bc793bf52353ddae4f599a063557c..3d7d93b4e88dddf1a86c2344a1ba5f2d3d531d8a 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
|
| @@ -1870,8 +1870,11 @@ void LayoutFlexibleBox::layoutAndPlaceChildren(
|
| setFlowAwareLocationForChild(*child, childLocation);
|
| mainAxisOffset += childMainExtent + flowAwareMarginEndForChild(*child);
|
|
|
| - mainAxisOffset += justifyContentSpaceBetweenChildren(
|
| - availableFreeSpace, distribution, children.size());
|
| + if (i != children.size() - 1) {
|
| + // The last item does not get extra space added.
|
| + mainAxisOffset += justifyContentSpaceBetweenChildren(
|
| + availableFreeSpace, distribution, children.size());
|
| + }
|
|
|
| if (isPaginated)
|
| updateFragmentationInfoForChild(*child);
|
|
|