b=1024901 revert TrackTicks range assertion to warning, unintentionally changed in b33b8af66151 r=roc

--HG--
extra : transplant_source : %D8%F8%C3%C2%C3%BF%29%F5%9C%3DiG%04%F9%86Gu%29%9A%8C
This commit is contained in:
Karl Tomlinson 2014-06-18 17:23:57 +12:00
parent 763787ecd7
commit a00e79f243

View File

@ -31,7 +31,7 @@ inline TrackTicks RateConvertTicksRoundDown(TrackRate aOutRate,
{
NS_ASSERTION(0 < aOutRate && aOutRate <= TRACK_RATE_MAX, "Bad out rate");
NS_ASSERTION(0 < aInRate && aInRate <= TRACK_RATE_MAX, "Bad in rate");
NS_ASSERTION(0 <= aTicks && aTicks <= TRACK_TICKS_MAX, "Bad ticks");
NS_WARN_IF_FALSE(0 <= aTicks && aTicks <= TRACK_TICKS_MAX, "Bad ticks"); // bug 957691
return (aTicks * aOutRate) / aInRate;
}
inline TrackTicks RateConvertTicksRoundUp(TrackRate aOutRate,