Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993)

This commit is contained in:
kipp@netscape.com
1999-07-07 02:33:17 +00:00
parent 6e9fc083f6
commit 88769694a3
21 changed files with 5626 additions and 5509 deletions

View File

@@ -499,14 +499,6 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext& aPresContext,
aDesiredSize.AddBorderPaddingToMaxElementSize(aReflowState.mComputedBorderPadding);
}
// if we are constrained and the child is smaller, use the constrained values
//if (aReflowState.HaveFixedContentWidth() && (aDesiredSize.width < aReflowState.computedWidth)) {
// aDesiredSize.width = aReflowState.computedWidth;
//}
//if (aReflowState.HaveFixedContentHeight() && (aDesiredSize.height < aReflowState.computedHeight)) {
// aDesiredSize.height = aReflowState.computedHeight;
//}
aDesiredSize.ascent = aDesiredSize.height;
aDesiredSize.descent = 0;