| Index: sky/engine/core/rendering/RenderBlockFlow.cpp
|
| diff --git a/sky/engine/core/rendering/RenderBlockFlow.cpp b/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| index 9a25aaea73e673cc1e3e2e5cdb92e470d702a556..47a9660d887d1d83946a13d5fa76e7cc213a5aac 100644
|
| --- a/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| +++ b/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| @@ -137,9 +137,7 @@ void RenderBlockFlow::determineLogicalLeftPositionForChild(RenderBox* child)
|
|
|
| // If the child has an offset from the content edge to avoid floats then use that, otherwise let any negative
|
| // margin pull it back over the content edge or any positive margin push it out.
|
| - // If the child is being centred then the margin calculated to do that has factored in any offset required to
|
| - // avoid floats, so use it if necessary.
|
| - if (style()->textAlign() == WEBKIT_CENTER || child->style()->marginStartUsing(style()).isAuto())
|
| + if (child->style()->marginStartUsing(style()).isAuto())
|
| newPosition = std::max(newPosition, childMarginStart);
|
|
|
| child->setX(style()->isLeftToRightDirection() ? newPosition : totalAvailableLogicalWidth - newPosition - logicalWidthForChild(child));
|
|
|