Removed HaveFixedContent* methods from nsHTMLReflowState and updated code to match (fix bug #7993)
git-svn-id: svn://10.0.0.236/trunk@38572 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user