mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 529934 followup: Use "IsStringUnit()" instead of explicitly comparing unit, in nsStyleAnimation::FreeValue. r=dbaron
This commit is contained in:
parent
ed30b4065d
commit
7fb24e97d7
@ -1544,7 +1544,7 @@ nsStyleAnimation::Value::FreeValue()
|
||||
delete mValue.mCSSValueList;
|
||||
} else if (IsCSSValuePairUnit(mUnit)) {
|
||||
delete mValue.mCSSValuePair;
|
||||
} else if (mUnit == eUnit_UnparsedString) {
|
||||
} else if (IsStringUnit(mUnit)) {
|
||||
NS_ABORT_IF_FALSE(mValue.mString, "expecting non-null string");
|
||||
mValue.mString->Release();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user