зеркало из https://github.com/mozilla/pjs.git
Reset the stretchy flags of underscript/overscript frames when their geometry is expected to be like subscript/superscirpt frames
This commit is contained in:
Родитель
dd8495555b
Коммит
ab2f76f911
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче