Bug 804944, patch 2: Also condition @-moz-keyframes parsing on the animations preference. r=bzbarsky

This commit is contained in:
L. David Baron 2013-03-10 12:44:13 -07:00
parent 5490faf3e4
commit 774a334ffb

View File

@ -1611,7 +1611,8 @@ CSSParserImpl::ParseAtRule(RuleAppendFunc aAppendFunc,
parseFunc = &CSSParserImpl::ParsePageRule;
newSection = eCSSSection_General;
} else if (mToken.mIdent.LowerCaseEqualsLiteral("-moz-keyframes") ||
} else if ((nsCSSProps::IsEnabled(eCSSPropertyAlias_MozAnimation) &&
mToken.mIdent.LowerCaseEqualsLiteral("-moz-keyframes")) ||
mToken.mIdent.LowerCaseEqualsLiteral("keyframes")) {
parseFunc = &CSSParserImpl::ParseKeyframesRule;
newSection = eCSSSection_General;