| Index: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
|
| index 05b71ef1447c822df210ce919b31cf8df5a4e835..e534ffd191edb18a566930489bf7ce9754f842f6 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
|
| @@ -2060,7 +2060,24 @@ LayoutUnit LayoutBlockFlow::startAlignedOffsetForLine(LayoutUnit position, Inden
|
| {
|
| ETextAlign textAlign = style()->textAlign();
|
|
|
| - if (textAlign == TASTART) // FIXME: Handle TAEND here
|
| + bool applyIndentText;
|
| + switch (textAlign) { // FIXME: Handle TAEND here
|
| + case LEFT:
|
| + case WEBKIT_LEFT:
|
| + applyIndentText = style()->isLeftToRightDirection();
|
| + break;
|
| + case RIGHT:
|
| + case WEBKIT_RIGHT:
|
| + applyIndentText = !style()->isLeftToRightDirection();
|
| + break;
|
| + case TASTART:
|
| + applyIndentText = true;
|
| + break;
|
| + default:
|
| + applyIndentText = false;
|
| + }
|
| +
|
| + if (applyIndentText)
|
| return startOffsetForLine(position, indentText);
|
|
|
| // updateLogicalWidthForAlignment() handles the direction of the block so no need to consider it here
|
|
|