Commit a1993bd6 authored by hyatt's avatar hyatt

Fix crash on espn.com.

        * khtml/rendering/render_object.cpp:
        (RenderObject::setLayouted):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3964a7b6
2002-11-18 David Hyatt <hyatt@apple.com>
Fix crash on espn.com.
* khtml/rendering/render_object.cpp:
(RenderObject::setLayouted):
2002-11-18 David Hyatt <hyatt@apple.com>
Fix my <konqblock> regression on ign.com.
......
2002-11-18 David Hyatt <hyatt@apple.com>
Fix crash on espn.com.
* khtml/rendering/render_object.cpp:
(RenderObject::setLayouted):
2002-11-18 David Hyatt <hyatt@apple.com>
Fix my <konqblock> regression on ign.com.
......
2002-11-18 David Hyatt <hyatt@apple.com>
Fix crash on espn.com.
* khtml/rendering/render_object.cpp:
(RenderObject::setLayouted):
2002-11-18 David Hyatt <hyatt@apple.com>
Fix my <konqblock> regression on ign.com.
......
......@@ -241,19 +241,21 @@ void RenderObject::setLayouted(bool b)
else {
RenderObject *o = m_parent;
RenderObject *root = this;
bool rootAlreadyNeedsLayout = false;
RenderObject* clippedObj = (style()->overflow() == OHIDDEN) ? this : 0;
while( o ) {
root = o;
rootAlreadyNeedsLayout = !o->m_layouted;
o->m_layouted = false;
if (o->style()->overflow() == OHIDDEN && !clippedObj)
clippedObj = o;
root = o;
o = o->m_parent;
}
if (!gClipObject) {
if (clippedObj) {
if (clippedObj && !rootAlreadyNeedsLayout) {
gClipObject = clippedObj;
root->layout();
clippedObj->repaint();
......
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