Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc
This commit is contained in:
@@ -319,12 +319,12 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
NS_ASSERTION(extraright >=0, "How'd that happen?");
|
||||
|
||||
// Do not allow the extras to be bigger than the relevant padding
|
||||
extraleft = PR_MIN(extraleft, aReflowState.mComputedPadding.left);
|
||||
extraright = PR_MIN(extraright, aReflowState.mComputedPadding.right);
|
||||
extraleft = NS_MIN(extraleft, aReflowState.mComputedPadding.left);
|
||||
extraright = NS_MIN(extraright, aReflowState.mComputedPadding.right);
|
||||
xoffset -= extraleft;
|
||||
availSize.width += extraleft + extraright;
|
||||
}
|
||||
availSize.width = PR_MAX(availSize.width,0);
|
||||
availSize.width = NS_MAX(availSize.width,0);
|
||||
|
||||
nsHTMLReflowState reflowState(aPresContext, aReflowState, aFirstKid,
|
||||
availSize);
|
||||
@@ -338,7 +338,7 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
// XXXbz this assumes border-box sizing.
|
||||
nscoord minInternalHeight = aReflowState.mComputedMinHeight -
|
||||
aReflowState.mComputedBorderPadding.TopBottom();
|
||||
minInternalHeight = PR_MAX(minInternalHeight, 0);
|
||||
minInternalHeight = NS_MAX(minInternalHeight, 0);
|
||||
|
||||
// center child vertically
|
||||
nscoord yoff = 0;
|
||||
|
||||
Reference in New Issue
Block a user