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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user