| Index: Source/core/rendering/line/BreakingContextInlineHeaders.h
|
| diff --git a/Source/core/rendering/line/BreakingContextInlineHeaders.h b/Source/core/rendering/line/BreakingContextInlineHeaders.h
|
| index c808288202f8c0228704ef875cda4116e7937d4e..9bb119eeaa1ca8c78b8a3728fc8111555ae44621 100644
|
| --- a/Source/core/rendering/line/BreakingContextInlineHeaders.h
|
| +++ b/Source/core/rendering/line/BreakingContextInlineHeaders.h
|
| @@ -898,12 +898,14 @@ inline void BreakingContext::commitAndUpdateLineBreakIfNeeded()
|
|
|
| inline IndentTextOrNot requiresIndent(bool isFirstLine, bool isAfterHardLineBreak, RenderStyle* style)
|
| {
|
| - if (isFirstLine)
|
| - return IndentText;
|
| - if (isAfterHardLineBreak && style->textIndentLine() == TextIndentEachLine)
|
| - return IndentText;
|
| + IndentTextOrNot shouldIndentText = DoNotIndentText;
|
| + if (isFirstLine || (isAfterHardLineBreak && style->textIndentLine()) == TextIndentEachLine)
|
| + shouldIndentText = IndentText;
|
|
|
| - return DoNotIndentText;
|
| + if (style->textIndentType() == TextIndentHanging)
|
| + shouldIndentText = shouldIndentText == IndentText ? DoNotIndentText : IndentText;
|
| +
|
| + return shouldIndentText;
|
| }
|
|
|
| }
|
|
|