From fec3388d44a4fb9ec0635c4d63be75917c907ff1 Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Tue, 29 Aug 2006 17:21:36 +0000 Subject: [PATCH] MathML s sometimes have incorrect scriptlevel, b=328141, r+sr=roc git-svn-id: svn://10.0.0.236/trunk@208712 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp index 38af86fc9fd..a505b2b9085 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp +++ b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp @@ -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