Bug 170011. Revert behavior of 'overflow:hidden' to only affect children for the current element is a containing block ancestor. r=dbaron,sr=kin

This commit is contained in:
roc+%cs.cmu.edu 2002-11-10 18:24:31 +00:00
Родитель 0980fa2f27
Коммит 85c9ca04af
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -994,6 +994,10 @@ NS_IMETHODIMP nsView::GetClippedRect(nsRect& aClippedRect, PRBool& aIsClipped, P
while (PR_TRUE) {
const nsView* zParent = view->GetZParent();
const nsView* parentView = view->GetParent();
#if 0
// For now, we're disabling this code. This means that we only honor clipping
// set by parent elements which are containing block ancestors of this content.
if (zParent) {
// This view was reparented. We need to continue collecting clip
// rects from the zParent.
@ -1020,6 +1024,7 @@ NS_IMETHODIMP nsView::GetClippedRect(nsRect& aClippedRect, PRBool& aIsClipped, P
parentView = zParent;
// Now start again at zParent to collect all its clip information
}
#endif
if (!parentView) {
break;