mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 521335: explicitly handle 'eUnit_None' in nsStyleAnimation's ComputeDistance & AddWeighted methods, so that none-to-none animations won't spam assertions. r=dbaron
This commit is contained in:
parent
3223de4b58
commit
bbb012c014
@ -153,6 +153,7 @@ nsStyleAnimation::ComputeDistance(const Value& aStartValue,
|
||||
break;
|
||||
}
|
||||
case eUnit_Null:
|
||||
case eUnit_None:
|
||||
success = PR_FALSE;
|
||||
break;
|
||||
default:
|
||||
@ -242,6 +243,7 @@ nsStyleAnimation::AddWeighted(double aCoeff1, const Value& aValue1,
|
||||
break;
|
||||
}
|
||||
case eUnit_Null:
|
||||
case eUnit_None:
|
||||
success = PR_FALSE;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user