mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Reset the stretchy flags of underscript/overscript frames when their geometry is expected to be like subscript/superscirpt frames
This commit is contained in:
parent
6673fe6131
commit
0f015abd9f
@ -208,6 +208,12 @@ XXX The winner is the outermost in conflicting settings like these:
|
||||
NS_MATHML_DISPLAYSTYLE | compress);
|
||||
}
|
||||
|
||||
// disable the strecth-all flag if we are going to act like an overscript
|
||||
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
|
||||
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
|
||||
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -202,6 +202,12 @@ XXX The winner is the outermost setting in conflicting settings like these:
|
||||
NS_MATHML_DISPLAYSTYLE | NS_MATHML_COMPRESSED);
|
||||
}
|
||||
|
||||
// disable the strecth-all flag if we are going to act like an subscript
|
||||
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
|
||||
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
|
||||
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -254,6 +254,12 @@ nsMathMLmunderoverFrame::SetInitialChildList(nsIPresContext* aPresContext,
|
||||
NS_MATHML_DISPLAYSTYLE | NS_MATHML_COMPRESSED);
|
||||
}
|
||||
|
||||
// disable the strecth-all flag if we are going to act like an subscript-superscript pair
|
||||
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
|
||||
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
|
||||
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user