mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00
Bug 1139709. Remove unused parameters from nsMathMLChar::GetMaxWidth. r=mats
--HG-- extra : rebase_source : a2c7cc22ab0ca688cb935f470056f97409b58fe3
This commit is contained in:
parent
aaa040a415
commit
9a9d89d206
@ -1823,8 +1823,7 @@ nscoord
|
||||
nsMathMLChar::GetMaxWidth(nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
float aFontSizeInflation,
|
||||
uint32_t aStretchHint,
|
||||
float aMaxSize, bool aMaxSizeIsAbsolute)
|
||||
uint32_t aStretchHint)
|
||||
{
|
||||
nsBoundingMetrics bm;
|
||||
nsStretchDirection direction = NS_STRETCH_DIRECTION_VERTICAL;
|
||||
|
@ -163,19 +163,11 @@ public:
|
||||
//
|
||||
// @param aStretchHint can be the value that will be passed to Stretch().
|
||||
// It is used to determine whether the operator is stretchy or a largeop.
|
||||
// @param aMaxSize is the value of the "maxsize" attribute.
|
||||
// @param aMaxSizeIsAbsolute indicates whether the aMaxSize is an absolute
|
||||
// value in app units (true) or a multiplier of the base size (false).
|
||||
nscoord
|
||||
GetMaxWidth(nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
float aFontSizeInflation,
|
||||
uint32_t aStretchHint = NS_STRETCH_NORMAL,
|
||||
float aMaxSize = NS_MATHML_OPERATOR_SIZE_INFINITY,
|
||||
// Perhaps just nsOperatorFlags aFlags.
|
||||
// But need DisplayStyle for largeOp,
|
||||
// or remove the largeop bit from flags.
|
||||
bool aMaxSizeIsAbsolute = false);
|
||||
uint32_t aStretchHint = NS_STRETCH_NORMAL);
|
||||
|
||||
// Metrics that _exactly_ enclose the char. The char *must* have *already*
|
||||
// being stretched before you can call the GetBoundingMetrics() method.
|
||||
|
@ -1035,7 +1035,8 @@ nsMathMLmoFrame::MarkIntrinsicISizesDirty()
|
||||
}
|
||||
|
||||
/* virtual */ void
|
||||
nsMathMLmoFrame::GetIntrinsicISizeMetrics(nsRenderingContext *aRenderingContext, nsHTMLReflowMetrics& aDesiredSize)
|
||||
nsMathMLmoFrame::GetIntrinsicISizeMetrics(nsRenderingContext *aRenderingContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize)
|
||||
{
|
||||
ProcessOperatorData();
|
||||
if (UseMathMLChar()) {
|
||||
@ -1044,8 +1045,7 @@ nsMathMLmoFrame::GetIntrinsicISizeMetrics(nsRenderingContext *aRenderingContext,
|
||||
aDesiredSize.Width() = mMathMLChar.
|
||||
GetMaxWidth(PresContext(), *aRenderingContext,
|
||||
nsLayoutUtils::FontSizeInflationFor(this),
|
||||
stretchHint, mMaxSize,
|
||||
NS_MATHML_OPERATOR_MAXSIZE_IS_ABSOLUTE(mFlags));
|
||||
stretchHint);
|
||||
}
|
||||
else {
|
||||
nsMathMLTokenFrame::GetIntrinsicISizeMetrics(aRenderingContext,
|
||||
|
Loading…
x
Reference in New Issue
Block a user