Index: Source/core/rendering/AutoTableLayout.cpp |
diff --git a/Source/core/rendering/AutoTableLayout.cpp b/Source/core/rendering/AutoTableLayout.cpp |
index 52172d2c4541b20e988680a6c3b58d4c6cd08030..81c2346f35f9af9bb56a6b19bf8a8ada7eb45747 100644 |
--- a/Source/core/rendering/AutoTableLayout.cpp |
+++ b/Source/core/rendering/AutoTableLayout.cpp |
@@ -198,7 +198,9 @@ static bool shouldScaleColumns(RenderTable* table) |
if (cb && cb->isTableCell() && |
(cb->style()->width().isAuto() || cb->style()->width().isPercent())) { |
RenderTableCell* cell = toRenderTableCell(cb); |
- if (cell->colSpan() > 1 || cell->table()->style()->width().isAuto()) |
+ Length tableWidth = cell->table()->style()->width(); |
+ if (cell->colSpan() > 1 || tableWidth.isAuto() || (tableWidth.isSpecified() && tableWidth.isZero()) |
+ || cell->table()->isFloatingOrOutOfFlowPositioned()) |
Julien - ping for review
2013/05/29 20:56:14
How about some testing for these cases?
|
scale = false; |
else |
table = cell->table(); |