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(); |
mstensho (USE GERRIT)
2014/12/04 09:47:57
This is a generic problem that doesn't only apply
Kyungtae Kim
2014/12/04 11:15:21
You're right. Both the code for RenderBox and Rend
|
+ 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. |