Index: Source/core/rendering/RenderBlockLineLayout.cpp |
diff --git a/Source/core/rendering/RenderBlockLineLayout.cpp b/Source/core/rendering/RenderBlockLineLayout.cpp |
index dce62643c71da167db71b876470ceadf371e144e..916c6fd8faec0a12c7629f43a879497abad6069e 100644 |
--- a/Source/core/rendering/RenderBlockLineLayout.cpp |
+++ b/Source/core/rendering/RenderBlockLineLayout.cpp |
@@ -274,9 +274,6 @@ ETextAlign RenderBlockFlow::textAlignmentForLine(bool endsWithSoftBreak) const |
if (!RuntimeEnabledFeatures::css3TextEnabled()) |
return (alignment == JUSTIFY) ? TASTART : alignment; |
- if (alignment != JUSTIFY) |
- return alignment; |
- |
TextAlignLast alignmentLast = style()->textAlignLast(); |
switch (alignmentLast) { |
case TextAlignLastStart: |
@@ -292,9 +289,9 @@ ETextAlign RenderBlockFlow::textAlignmentForLine(bool endsWithSoftBreak) const |
case TextAlignLastJustify: |
return JUSTIFY; |
case TextAlignLastAuto: |
- if (style()->textJustify() == TextJustifyDistribute) |
- return JUSTIFY; |
- return TASTART; |
+ if (alignment == JUSTIFY) |
+ return TASTART; |
+ return alignment; |
} |
return alignment; |