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:
Daniel Holbert 2009-10-20 09:54:50 -07:00
parent 3223de4b58
commit bbb012c014

View File

@ -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: