Bug 812344 - Don't use a qualified enum in CSSParserImpl::ParseDeclaration; r=roc

This commit is contained in:
Ms2ger 2012-11-16 08:30:18 +01:00
parent 9531033387
commit 93231bd4cf

View File

@ -4310,7 +4310,7 @@ CSSParserImpl::ParseDeclaration(css::Declaration* aDeclaration,
nsCSSProperty propID = nsCSSProps::LookupProperty(propertyName,
nsCSSProps::eEnabled);
if (eCSSProperty_UNKNOWN == propID ||
(aContext == nsCSSContextType::eCSSContext_Page &&
(aContext == eCSSContext_Page &&
!nsCSSProps::PropHasFlags(propID, CSS_PROPERTY_APPLIES_TO_PAGE_RULE))) { // unknown property
if (!NonMozillaVendorIdentifier(propertyName)) {
REPORT_UNEXPECTED_P(PEUnknownProperty, propertyName);