Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index 2395e4a874a331f929f40bc64fa489fd9b48fc2c..c197eafc27cbb99dd2710e4e524a75d285f425d3 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -1209,6 +1209,8 @@ void RenderFlexibleBox::layoutColumnReverse(const OrderedFlexItemList& children, |
static LayoutUnit initialAlignContentOffset(LayoutUnit availableFreeSpace, EAlignContent alignContent, unsigned numberOfLines) |
{ |
+ if (numberOfLines <= 1) |
+ return 0; |
if (alignContent == AlignContentFlexEnd) |
return availableFreeSpace; |
if (alignContent == AlignContentCenter) |