git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9017
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
// FIXME: Note that we restrict overflow to blocks for now. One day table bodies and cells
// will need to support overflow.
// We also handle <body> and <html>, 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()) {