From d57fc5ac3c90e121a75c3215de6ef9b5a2c4aa8f Mon Sep 17 00:00:00 2001 From: hyatt Date: Fri, 15 Apr 2005 10:51:49 +0000 Subject: [PATCH] Fix a mistake in render_box.cpp. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9017 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/khtml/rendering/render_box.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WebCore/khtml/rendering/render_box.cpp b/WebCore/khtml/rendering/render_box.cpp index dc4aef3f98e8..a2fa0b4f2cf0 100644 --- a/WebCore/khtml/rendering/render_box.cpp +++ b/WebCore/khtml/rendering/render_box.cpp @@ -99,8 +99,7 @@ void RenderBox::setStyle(RenderStyle *_style) // FIXME: Note that we restrict overflow to blocks for now. One day table bodies and cells // will need to support overflow. // We also handle and , whose overflow applies to the viewport. - if (_style->overflow() != OVISIBLE && isBlockFlow() && !isTableCell() && !isRoot() && - (!isBody() || !document()->isHTMLDocument() || !(parent() && parent()->style()->overflow() == OVISIBLE))) + if (_style->overflow() != OVISIBLE && isBlockFlow() && !isTableCell() && !isRoot() && (!isBody() || !document()->isHTMLDocument())) setHasOverflowClip(); if (requiresLayer()) { -- 2.36.0