SVN commit 606388 by carewolf: Make relayout on overflow AUTO more finegrained. This fixes an infinite relayout on msdn. M +2 -3 render_layer.cpp --- branches/KDE/3.5/kdelibs/khtml/rendering/render_layer.cpp #606387:606388 @@ -743,9 +743,8 @@ m_vBar->setEnabled(needVerticalBar); // overflow:auto may need to lay out again if scrollbars got added/removed. - bool scrollbarsChanged = (m_object->style()->overflowX() == OAUTO || - m_object->style()->overflowY() == OAUTO) && - (haveHorizontalBar != needHorizontalBar || haveVerticalBar != needVerticalBar); + bool scrollbarsChanged = (m_object->style()->overflowX() == OAUTO && haveHorizontalBar != needHorizontalBar) + || (m_object->style()->overflowY() == OAUTO && haveVerticalBar != needVerticalBar); if (scrollbarsChanged) { if (m_object->style()->overflowX() == OAUTO) showScrollbar(Qt::Horizontal, needHorizontalBar);