Fix for 3992440, text not wrapping correctly on half moon bay web site. Refine...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Feb 2005 09:34:27 +0000 (09:34 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Feb 2005 09:34:27 +0000 (09:34 +0000)
added to be less restrictive.

        Reviewed by mjs

        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::layoutBlockChildren):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8558 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_block.cpp

index 824e484..ba4400c 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-10  David Hyatt  <hyatt@apple.com>
+
+       Fix  for 3992440, text not wrapping correctly on half moon bay web site.  Refine an incorrect optimization I
+       added to be less restrictive.
+       
+        Reviewed by mjs
+
+        * khtml/rendering/render_block.cpp:
+        (khtml::RenderBlock::layoutBlockChildren):
+
 2005-02-08  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin.
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);