Commit b8fffd35 authored by hyatt's avatar hyatt

Make sure floats are avoided if you have non-auto column property...

        Make sure floats are avoided if you have non-auto column property values.  Fixes the crazy layout
        on http://weblogs.mozillazine.org/roc.

        Reviewed by mitz

        Added fast/multicol/float-avoidance.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::avoidsFloats):



git-svn-id: svn://svn.chromium.org/blink/trunk@18840 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6040e066
2007-01-14 David Hyatt <hyatt@apple.com>
Make sure floats are avoided if you have non-auto column property values. Fixes the crazy layout
on http://weblogs.mozillazine.org/roc.
Reviewed by mitz
Added fast/multicol/float-avoidance.html
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::avoidsFloats):
2007-01-14 David Hyatt <hyatt@apple.com> 2007-01-14 David Hyatt <hyatt@apple.com>
Fix for 10145, regression where line breaks are not being honored between adjacent replaced elements. Fix for 10145, regression where line breaks are not being honored between adjacent replaced elements.
......
...@@ -2578,8 +2578,8 @@ void RenderBlock::addIntrudingFloats(RenderBlock* prev, int xoff, int yoff) ...@@ -2578,8 +2578,8 @@ void RenderBlock::addIntrudingFloats(RenderBlock* prev, int xoff, int yoff)
bool RenderBlock::avoidsFloats() const bool RenderBlock::avoidsFloats() const
{ {
// Floats can't intrude into our box if we have multiple columns. // Floats can't intrude into our box if we have a non-auto column count or width.
return RenderFlow::avoidsFloats() || hasColumns(); return RenderFlow::avoidsFloats() || !style()->hasAutoColumnCount() || !style()->hasAutoColumnWidth();
} }
bool RenderBlock::containsFloat(RenderObject* o) bool RenderBlock::containsFloat(RenderObject* o)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment