Index: Source/core/rendering/RenderTable.cpp |
diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp |
index 0f4798bc5a26bdcec8dcef4d29c6cb4a492a87ea..2e0681689a3159e8668db48a9683e181fcc7edb5 100644 |
--- a/Source/core/rendering/RenderTable.cpp |
+++ b/Source/core/rendering/RenderTable.cpp |
@@ -258,7 +258,7 @@ void RenderTable::updateLogicalWidth() |
RenderBlock* cb = containingBlock(); |
- LayoutUnit availableLogicalWidth = containingBlockLogicalWidthForContent(); |
+ LayoutUnit availableLogicalWidth = containingBlockLogicalWidthForContent() + (isOutOfFlowPositioned() ? cb->paddingLogicalWidth() : LayoutUnit(0)); |
bool hasPerpendicularContainingBlock = cb->style()->isHorizontalWritingMode() != style()->isHorizontalWritingMode(); |
LayoutUnit containerWidthInInlineDirection = hasPerpendicularContainingBlock ? perpendicularContainingBlockLogicalHeight() : availableLogicalWidth; |