MathML only - remove outdated APIs

git-svn-id: svn://10.0.0.236/trunk@111383 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2002-01-05 01:08:09 +00:00
parent 3a31fba4c6
commit d1382b9071
3 changed files with 26 additions and 42 deletions

View File

@@ -189,12 +189,12 @@ nsMathMLmsqrtFrame::Reflow(nsIPresContext* aPresContext,
nsCOMPtr<nsIFontMetrics> fm;
renderingContext.GetFontMetrics(*getter_AddRefs(fm));
nscoord ruleThickness, leading;
nscoord ruleThickness, leading, em;
GetRuleThickness(renderingContext, fm, ruleThickness);
// get the leading to be left at the top of the resulting frame
// this seems more reliable than using fm->GetLeading() on suspicious fonts
float em = float(font->mFont.size);
GetEmHeight(fm, em);
leading = nscoord(0.2f * em);
// Rule 11, App. G, TeXbook