Fix for 3992440, text not wrapping correctly on half moon bay web site. Refine...
[WebKit-https.git] / WebCore / khtml / rendering / render_block.cpp
index 32242f1..b6b25e2 100644 (file)
@@ -1047,8 +1047,7 @@ void RenderBlock::layoutBlockChildren(bool relayoutChildren)
         
         // If an element might be affected by the presence of floats, then always mark it for
         // layout.
-        bool affectedByFloats = !child->avoidsFloats() || (child->style()->width().isPercent() && child->usesLineWidth());
-        if (affectedByFloats) {
+        if (!child->avoidsFloats() || child->usesLineWidth()) {
             int fb = floatBottom();
             if (fb > m_height || fb > yPosEstimate)
                 child->setChildNeedsLayout(true);