Index: Source/WebCore/rendering/RenderTable.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTable.cpp (revision 143531) |
+++ Source/WebCore/rendering/RenderTable.cpp (working copy) |
@@ -273,20 +273,10 @@ |
// Ensure we aren't smaller than our min preferred width. |
setLogicalWidth(max<int>(logicalWidth(), minPreferredLogicalWidth())); |
- |
- // Ensure we aren't bigger than our max-width style. |
- Length styleMaxLogicalWidth = style()->logicalMaxWidth(); |
- if (styleMaxLogicalWidth.isSpecified() && !styleMaxLogicalWidth.isNegative()) { |
- LayoutUnit computedMaxLogicalWidth = convertStyleLogicalWidthToComputedWidth(styleMaxLogicalWidth, availableLogicalWidth); |
- setLogicalWidth(min<int>(logicalWidth(), computedMaxLogicalWidth)); |
- } |
- |
// Ensure we aren't smaller than our min-width style. |
Length styleMinLogicalWidth = style()->logicalMinWidth(); |
- if (styleMinLogicalWidth.isSpecified() && !styleMinLogicalWidth.isNegative()) { |
- LayoutUnit computedMinLogicalWidth = convertStyleLogicalWidthToComputedWidth(styleMinLogicalWidth, availableLogicalWidth); |
- setLogicalWidth(max<int>(logicalWidth(), computedMinLogicalWidth)); |
- } |
+ if (styleMinLogicalWidth.isSpecified() && styleMinLogicalWidth.isPositive()) |
+ setLogicalWidth(max<int>(logicalWidth(), convertStyleLogicalWidthToComputedWidth(styleMinLogicalWidth, availableLogicalWidth))); |
// Finally, with our true width determined, compute our margins for real. |
setMarginStart(0); |