Port to updated nsLeafFrame methods
git-svn-id: svn://10.0.0.236/trunk@15016 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -279,7 +279,8 @@ nsButtonControlFrame::Reflow(nsIPresContext& aPresContext,
|
||||
if (NS_FORM_INPUT_IMAGE == type) {
|
||||
nsSize ignore;
|
||||
GetDesiredSize(&aPresContext, aReflowState, aDesiredSize, ignore);
|
||||
AddBordersAndPadding(&aPresContext, aDesiredSize);
|
||||
nsMargin bp;
|
||||
AddBordersAndPadding(&aPresContext, aReflowState, aDesiredSize, bp);
|
||||
if (nsnull != aDesiredSize.maxElementSize) {
|
||||
aDesiredSize.maxElementSize->width = aDesiredSize.width;
|
||||
aDesiredSize.maxElementSize->height = aDesiredSize.height;
|
||||
|
||||
Reference in New Issue
Block a user