bug 1031241 pt 1 - Rename Get{Min,Pref}Width to Get{Min,Pref}ISize throughout layout. r=dbaron,smontagu
This commit is contained in:
@@ -132,7 +132,7 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
}
|
||||
|
||||
nscoord
|
||||
nsHTMLButtonControlFrame::GetMinWidth(nsRenderingContext* aRenderingContext)
|
||||
nsHTMLButtonControlFrame::GetMinISize(nsRenderingContext* aRenderingContext)
|
||||
{
|
||||
nscoord result;
|
||||
DISPLAY_MIN_WIDTH(this, result);
|
||||
@@ -148,7 +148,7 @@ nsHTMLButtonControlFrame::GetMinWidth(nsRenderingContext* aRenderingContext)
|
||||
}
|
||||
|
||||
nscoord
|
||||
nsHTMLButtonControlFrame::GetPrefWidth(nsRenderingContext* aRenderingContext)
|
||||
nsHTMLButtonControlFrame::GetPrefISize(nsRenderingContext* aRenderingContext)
|
||||
{
|
||||
nscoord result;
|
||||
DISPLAY_PREF_WIDTH(this, result);
|
||||
@@ -258,7 +258,7 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
// offset to allow the kid to spill left into our padding.
|
||||
nscoord xoffset = focusPadding.left +
|
||||
aButtonReflowState.ComputedPhysicalBorderPadding().left;
|
||||
nscoord extrawidth = GetMinWidth(aButtonReflowState.rendContext) -
|
||||
nscoord extrawidth = GetMinISize(aButtonReflowState.rendContext) -
|
||||
aButtonReflowState.ComputedWidth();
|
||||
if (extrawidth > 0) {
|
||||
nscoord extraleft = extrawidth / 2;
|
||||
|
||||
Reference in New Issue
Block a user