Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson

git-svn-id: svn://10.0.0.236/trunk@96136 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2001-05-31 22:19:43 +00:00
parent f0acd4a581
commit b7b1cb3691
301 changed files with 16914 additions and 19301 deletions

View File

@@ -321,14 +321,14 @@ nsMathMLmfencedFrame::Reflow(nsIPresContext* aPresContext,
// adjust the origin of children.
PRInt32 i;
nsStyleFont font;
mStyleContext->GetStyle(eStyleStruct_Font, font);
const nsStyleFont *font = NS_STATIC_CAST(const nsStyleFont*,
mStyleContext->GetStyleData(eStyleStruct_Font));
nsCOMPtr<nsIFontMetrics> fm;
aReflowState.rendContext->SetFont(font.mFont);
aReflowState.rendContext->SetFont(font->mFont);
aReflowState.rendContext->GetFontMetrics(*getter_AddRefs(fm));
nscoord axisHeight, em;
GetAxisHeight(*aReflowState.rendContext, fm, axisHeight);
em = NSToCoordRound(float(font.mFont.size));
em = NSToCoordRound(float(font->mFont.size));
nscoord fontAscent, fontDescent;
fm->GetMaxAscent(fontAscent);