| Index: Source/core/rendering/RenderTable.cpp
|
| diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp
|
| index df9a9aec096035c33130814be2ff2e569aa95ab6..8bd25f589f18f3b45cf677ca78448c5553d8e523 100644
|
| --- a/Source/core/rendering/RenderTable.cpp
|
| +++ b/Source/core/rendering/RenderTable.cpp
|
| @@ -300,8 +300,10 @@ void RenderTable::updateLogicalWidth()
|
| // Finally, with our true width determined, compute our margins for real.
|
| ComputedMarginValues marginValues;
|
| computeMarginsForDirection(InlineDirection, cb, availableLogicalWidth, logicalWidth(), marginValues.m_start, marginValues.m_end, style()->marginStart(), style()->marginEnd());
|
| - setMarginStart(marginValues.m_start);
|
| - setMarginEnd(marginValues.m_end);
|
| +
|
| + bool hasInvertedDirection = cb->style()->isLeftToRightDirection() == style()->isLeftToRightDirection();
|
| + setMarginStart(hasInvertedDirection ? marginValues.m_start : marginValues.m_end);
|
| + setMarginEnd(hasInvertedDirection ? marginValues.m_end : marginValues.m_start);
|
|
|
| // We should NEVER shrink the table below the min-content logical width, or else the table can't accomodate
|
| // its own content which doesn't match CSS nor what authors expect.
|
|
|