From f81224da15885b17d53d40a3cc639bb08a2ac90d Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Wed, 20 Jan 1999 03:43:33 +0000 Subject: [PATCH] Removed some scroll related logic that was causing computed widths to be computed incorrectly. Now the scroll frame handles it --- layout/generic/nsHTMLReflowState.cpp | 8 -------- layout/html/base/src/nsHTMLReflowState.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/layout/generic/nsHTMLReflowState.cpp b/layout/generic/nsHTMLReflowState.cpp index 6168a3d0fda..ec3bd00c79a 100644 --- a/layout/generic/nsHTMLReflowState.cpp +++ b/layout/generic/nsHTMLReflowState.cpp @@ -580,14 +580,6 @@ nsHTMLReflowState::InitConstraints(nsIPresContext& aPresContext) nsStyleUnit widthUnit = pos->mWidth.GetUnit(); nsStyleUnit heightUnit = pos->mHeight.GetUnit(); - // It's possible the child's max width is less than the width of the - // containing block (e.g., for scrolled elements because we subtract for - // the scrollbar width). - // XXX Don't do this if the max width is 0, which is the case for floaters... - if ((availableWidth < containingBlockWidth) && (availableWidth > 0)) { - containingBlockWidth = availableWidth; - } - // Check for a percentage based width and an unconstrained containing // block width if (eStyleUnit_Percent == widthUnit) { diff --git a/layout/html/base/src/nsHTMLReflowState.cpp b/layout/html/base/src/nsHTMLReflowState.cpp index 6168a3d0fda..ec3bd00c79a 100644 --- a/layout/html/base/src/nsHTMLReflowState.cpp +++ b/layout/html/base/src/nsHTMLReflowState.cpp @@ -580,14 +580,6 @@ nsHTMLReflowState::InitConstraints(nsIPresContext& aPresContext) nsStyleUnit widthUnit = pos->mWidth.GetUnit(); nsStyleUnit heightUnit = pos->mHeight.GetUnit(); - // It's possible the child's max width is less than the width of the - // containing block (e.g., for scrolled elements because we subtract for - // the scrollbar width). - // XXX Don't do this if the max width is 0, which is the case for floaters... - if ((availableWidth < containingBlockWidth) && (availableWidth > 0)) { - containingBlockWidth = availableWidth; - } - // Check for a percentage based width and an unconstrained containing // block width if (eStyleUnit_Percent == widthUnit) {