mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Followup to Bug 522320 bustage fix: in modified chunk of nsCSSDeclaration, check nsCSSValue unit before querying its integer value
This commit is contained in:
parent
0902ed0ee1
commit
a151e00614
@ -977,11 +977,13 @@ nsCSSDeclaration::GetValue(nsCSSProperty aProperty,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (style.GetIntValue() != NS_FONT_STYLE_NORMAL) {
|
||||
if (style.GetUnit() != eCSSUnit_Enumerated ||
|
||||
style.GetIntValue() != NS_FONT_STYLE_NORMAL) {
|
||||
AppendCSSValueToString(eCSSProperty_font_style, style, aValue);
|
||||
aValue.Append(PRUnichar(' '));
|
||||
}
|
||||
if (variant.GetIntValue() != NS_FONT_VARIANT_NORMAL) {
|
||||
if (variant.GetUnit() != eCSSUnit_Enumerated ||
|
||||
variant.GetIntValue() != NS_FONT_VARIANT_NORMAL) {
|
||||
AppendCSSValueToString(eCSSProperty_font_variant, variant, aValue);
|
||||
aValue.Append(PRUnichar(' '));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user