Bug 1667118 - Rename -moz-math-script-level to math-depth. r=emilio
This renames the internal -moz-math-script-level property in order to prepare for full math-depth support. Currently, the property is guarded under a disabled-by-default flag, so there should be no observable behavior change. Differential Revision: https://phabricator.services.mozilla.com/D91285
This commit is contained in:
@@ -1142,7 +1142,7 @@ class nsMathMLContainerFrame::RowChildFrameIterator {
|
||||
// add inter frame spacing
|
||||
const nsStyleFont* font = mParentFrame->StyleFont();
|
||||
nscoord space =
|
||||
GetInterFrameSpacing(font->mScriptLevel, prevFrameType, mChildFrameType,
|
||||
GetInterFrameSpacing(font->mMathDepth, prevFrameType, mChildFrameType,
|
||||
&mFromFrameType, &mCarrySpace);
|
||||
mX += space * GetThinSpace(font);
|
||||
return *this;
|
||||
@@ -1293,7 +1293,7 @@ static nscoord AddInterFrameSpacingToSize(ReflowOutput& aDesiredSize,
|
||||
return 0;
|
||||
}
|
||||
if (parentContent->IsAnyOfMathMLElements(nsGkAtoms::math, nsGkAtoms::mtd_)) {
|
||||
gap = GetInterFrameSpacingFor(aFrame->StyleFont()->mScriptLevel, parent,
|
||||
gap = GetInterFrameSpacingFor(aFrame->StyleFont()->mMathDepth, parent,
|
||||
aFrame);
|
||||
// add our own italic correction
|
||||
nscoord leftCorrection = 0, italicCorrection = 0;
|
||||
|
||||
Reference in New Issue
Block a user