Commit 5873ea08 authored by hyatt's avatar hyatt

Fix for 3129016, make sure that zero-height tables and lists

	will be skipped in a search for floats that occur before
	them.  Makes usatoday work.

        Reviewed by gramps

        * khtml/rendering/render_flow.cpp:
        (RenderFlow::clearFloats):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 58521793
2002-12-30 David Hyatt <hyatt@apple.com>
Fix for 3129016, make sure that zero-height tables and lists
will be skipped in a search for floats that occur before
them. Makes usatoday work.
Reviewed by gramps
* khtml/rendering/render_flow.cpp:
(RenderFlow::clearFloats):
2002-12-30 Darin Adler <darin@apple.com>
Reviewed by Maciej.
......
2002-12-30 David Hyatt <hyatt@apple.com>
Fix for 3129016, make sure that zero-height tables and lists
will be skipped in a search for floats that occur before
them. Makes usatoday work.
Reviewed by gramps
* khtml/rendering/render_flow.cpp:
(RenderFlow::clearFloats):
2002-12-30 Darin Adler <darin@apple.com>
Reviewed by Maciej.
......
......@@ -1257,7 +1257,9 @@ RenderFlow::clearFloats()
while (prev) {
if (!prev->isFlow() || prev->isFloating() ||
(prev->style()->flowAroundFloats() &&
(static_cast<RenderFlow *>(prev)->floatBottom()+prev->yPos() < m_y ))) {
// A <table> or <ul> can have a height of 0, so its ypos may be the same
// as m_y. That's why we have a <= and not a < here. -dwh
(static_cast<RenderFlow *>(prev)->floatBottom()+prev->yPos() <= m_y ))) {
if ( prev->isFloating() && parent()->isFlow() ) {
parentHasFloats = true;
}
......
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