Index: Source/WebCore/rendering/RenderReplaced.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderReplaced.cpp (revision 109989) |
+++ Source/WebCore/rendering/RenderReplaced.cpp (working copy) |
@@ -433,9 +433,7 @@ |
if (style()->maxWidth().isFixed()) |
m_maxPreferredLogicalWidth = min(m_maxPreferredLogicalWidth, style()->maxWidth().value() + (style()->boxSizing() == CONTENT_BOX ? borderAndPadding : 0)); |
- if (style()->width().isPercent() || style()->height().isPercent() |
- || style()->maxWidth().isPercent() || style()->maxHeight().isPercent() |
- || style()->minWidth().isPercent() || style()->minHeight().isPercent()) |
+ if (hasRelativeDimensions()) |
m_minPreferredLogicalWidth = 0; |
else |
m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth; |