| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 760eab0aad7d7832b5fed5c1e2a2aff48cfc7088..7946e78451db9f3971db398d430a43cb194fedbb 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -3233,20 +3233,8 @@ static void computeLogicalLeftPositionedOffset(LayoutUnit& logicalLeftPos, const
|
| if (containerBlock->isHorizontalWritingMode() != child->isHorizontalWritingMode() && containerBlock->style()->isFlippedBlocksWritingMode()) {
|
| logicalLeftPos = containerLogicalWidth - logicalWidthValue - logicalLeftPos;
|
| logicalLeftPos += (child->isHorizontalWritingMode() ? containerBlock->borderRight() : containerBlock->borderBottom());
|
| - } else if (child->isHorizontalWritingMode()) {
|
| - RenderStyle* blockStyle = containerBlock->style();
|
| - bool containerBlockIsLTR = isLeftToRightDirection(blockStyle->direction());
|
| - ETextAlign textAlignForContainerBlock = containerBlock->simplifiedTextAlign(blockStyle->textAlign());
|
| - if (containerBlockIsLTR && textAlignForContainerBlock == RIGHT) {
|
| - logicalLeftPos = containerLogicalWidth - (logicalWidthValue + child->borderLogicalWidth() + child->style()->logicalRight().value());
|
| - logicalLeftPos += containerBlock->borderLogicalRight();
|
| - } else if (!containerBlockIsLTR && textAlignForContainerBlock == LEFT) {
|
| - logicalLeftPos += containerBlock->borderAndPaddingLogicalLeft() + logicalWidthValue;
|
| - } else {
|
| - logicalLeftPos += containerBlock->borderLeft();
|
| - }
|
| } else {
|
| - logicalLeftPos += containerBlock->borderTop();
|
| + logicalLeftPos += (child->isHorizontalWritingMode() ? containerBlock->borderLeft() : containerBlock->borderTop());
|
| }
|
| }
|
|
|
|
|