зеркало из https://github.com/mozilla/pjs.git
MathML <mtable>s sometimes have incorrect scriptlevel, b=328141, r+sr=roc
This commit is contained in:
Родитель
bfe313e6f5
Коммит
04381a5640
|
@ -625,7 +625,9 @@ nsMathMLContainerFrame::PropagateScriptStyleFor(nsIFrame* aFrame,
|
|||
nsIContent* content = aFrame->GetContent();
|
||||
if (!gap) {
|
||||
// unset any -moz-math-font-size attribute without notifying that we want a reflow
|
||||
content->UnsetAttr(kNameSpaceID_None, nsMathMLAtoms::MOZfontsize, PR_FALSE);
|
||||
// (but leave it to the primary frame to do that, a child pseudo can't overrule)
|
||||
if (!aFrame->GetParent() || aFrame->GetParent()->GetContent() != content)
|
||||
content->UnsetAttr(kNameSpaceID_None, nsMathMLAtoms::MOZfontsize, PR_FALSE);
|
||||
}
|
||||
else {
|
||||
// By default scriptminsize=8pt and scriptsizemultiplier=0.71
|
||||
|
|
Загрузка…
Ссылка в новой задаче