diff --git a/layout/forms/nsTextControlFrame.cpp b/layout/forms/nsTextControlFrame.cpp index d049ad995f8..2fcd0c9956c 100644 --- a/layout/forms/nsTextControlFrame.cpp +++ b/layout/forms/nsTextControlFrame.cpp @@ -1599,7 +1599,7 @@ nsTextControlFrame::CalculateSizeStandard(nsPresContext* aPresContext, NS_ENSURE_SUCCESS(rv, rv); nsIRenderingContext* rendContext = aReflowState.rendContext; rendContext->SetFont(fontMet); - lineHeight = aReflowState.CalcLineHeight(aPresContext, rendContext, aReflowState.frame); + lineHeight = aReflowState.CalcLineHeight(aPresContext, rendContext, this); fontMet->GetAveCharWidth(charWidth); fontMet->GetMaxAdvance(charMaxAdvance); diff --git a/layout/html/forms/src/nsTextControlFrame.cpp b/layout/html/forms/src/nsTextControlFrame.cpp index d049ad995f8..2fcd0c9956c 100644 --- a/layout/html/forms/src/nsTextControlFrame.cpp +++ b/layout/html/forms/src/nsTextControlFrame.cpp @@ -1599,7 +1599,7 @@ nsTextControlFrame::CalculateSizeStandard(nsPresContext* aPresContext, NS_ENSURE_SUCCESS(rv, rv); nsIRenderingContext* rendContext = aReflowState.rendContext; rendContext->SetFont(fontMet); - lineHeight = aReflowState.CalcLineHeight(aPresContext, rendContext, aReflowState.frame); + lineHeight = aReflowState.CalcLineHeight(aPresContext, rendContext, this); fontMet->GetAveCharWidth(charWidth); fontMet->GetMaxAdvance(charMaxAdvance);