Commit d8d042fb authored by hyatt's avatar hyatt

Fix for 3128843, horked layout on weather.com. Ensure that

	overflow: hidden elements bounds-check their minwidth and maxwidth
	values to ensure that you don't grow the clipped element.

        Reviewed by mjs

        * khtml/rendering/render_box.cpp:
        (RenderBox::calcWidth):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 040136ef
2002-12-16 David Hyatt <hyatt@apple.com>
Fix for 3128843, horked layout on weather.com. Ensure that
overflow: hidden elements bounds-check their minwidth and maxwidth
values to ensure that you don't grow the clipped element.
Reviewed by mjs
* khtml/rendering/render_box.cpp:
(RenderBox::calcWidth):
2002-12-16 Trey Matteson <trey@apple.com>
3129175 - we're doing needless GETs when using b/f cache
......
2002-12-16 David Hyatt <hyatt@apple.com>
Fix for 3128843, horked layout on weather.com. Ensure that
overflow: hidden elements bounds-check their minwidth and maxwidth
values to ensure that you don't grow the clipped element.
Reviewed by mjs
* khtml/rendering/render_box.cpp:
(RenderBox::calcWidth):
2002-12-16 Trey Matteson <trey@apple.com>
3129175 - we're doing needless GETs when using b/f cache
......
......@@ -572,6 +572,12 @@ void RenderBox::calcWidth()
}
}
// Scrolling marquees like to use this trick:
// <div style="overflow:hidden; width:300px"><nobr>.....[lots of text].....</nobr></div>
// We need to sanity-check our m_minWidth, and not let it exceed our clipped boundary. -dwh
if (style()->overflow() == OHIDDEN && m_minWidth > m_width)
m_minWidth = m_width;
#ifdef DEBUG_LAYOUT
kdDebug( 6040 ) << "RenderBox::calcWidth(): m_width=" << m_width << " containingBlockWidth()=" << containingBlockWidth() << endl;
kdDebug( 6040 ) << "m_marginLeft=" << m_marginLeft << " m_marginRight=" << m_marginRight << endl;
......
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