Correct checks that were for the wrong pseudo-property (script-level vs. script-size-multiplier). (Bug 636039, patch 10) r=bzbarsky

This commit is contained in:
L. David Baron 2011-03-17 20:14:31 -07:00
parent bdbc263fe7
commit 59b4de6d7d

View File

@ -3027,11 +3027,11 @@ nsRuleNode::SetFont(nsPresContext* aPresContext, nsStyleContext* aContext,
// "absolute"
aFont->mScriptLevel = ClampTo8Bit(PRInt32(aFontData.mScriptLevel.GetFloatValue()));
}
else if (eCSSUnit_Inherit == aFontData.mScriptSizeMultiplier.GetUnit()) {
else if (eCSSUnit_Inherit == aFontData.mScriptLevel.GetUnit()) {
aCanStoreInRuleTree = PR_FALSE;
aFont->mScriptLevel = aParentFont->mScriptLevel;
}
else if (eCSSUnit_Initial == aFontData.mScriptSizeMultiplier.GetUnit()) {
else if (eCSSUnit_Initial == aFontData.mScriptLevel.GetUnit()) {
aFont->mScriptLevel = 0;
}
#endif