mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907816 - GetCSSValuesForProperty does not use the display keyword table. r=bz
This commit is contained in:
parent
274a71d1fa
commit
036abb7597
@ -571,7 +571,9 @@ inDOMUtils::GetCSSValuesForProperty(const nsAString& aProperty,
|
||||
uint32_t propertyParserVariant = nsCSSProps::ParserVariant(propertyID);
|
||||
// Get colors first.
|
||||
GetColorsForProperty(propertyParserVariant, array);
|
||||
GetKeywordsForProperty(propertyID, array);
|
||||
if (propertyParserVariant & VARIANT_KEYWORD) {
|
||||
GetKeywordsForProperty(propertyID, array);
|
||||
}
|
||||
GetOtherValuesForProperty(propertyParserVariant, array);
|
||||
} else {
|
||||
// Property is shorthand.
|
||||
@ -585,7 +587,9 @@ inDOMUtils::GetCSSValuesForProperty(const nsAString& aProperty,
|
||||
}
|
||||
CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES(subproperty, propertyID) {
|
||||
uint32_t propertyParserVariant = nsCSSProps::ParserVariant(*subproperty);
|
||||
GetKeywordsForProperty(*subproperty, array);
|
||||
if (propertyParserVariant & VARIANT_KEYWORD) {
|
||||
GetKeywordsForProperty(*subproperty, array);
|
||||
}
|
||||
GetOtherValuesForProperty(propertyParserVariant, array);
|
||||
}
|
||||
}
|
||||
|
@ -2861,7 +2861,7 @@ CSS_PROP_DISPLAY(
|
||||
CSS_PROPERTY_PARSE_FUNCTION,
|
||||
"",
|
||||
0,
|
||||
kDisplayKTable,
|
||||
nullptr,
|
||||
offsetof(nsStyleDisplay, mSpecifiedTransform),
|
||||
eStyleAnimType_Custom)
|
||||
CSS_PROP_DISPLAY(
|
||||
|
Loading…
Reference in New Issue
Block a user