mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246893 - Fix boundary values of nsSMILKeySpline::GetTForX. r=birtles
MozReview-Commit-ID: 9KX0aLPRP31
This commit is contained in:
parent
ca87b3f71b
commit
bb1180f5bd
@ -76,6 +76,10 @@ nsSMILKeySpline::GetSlope(double aT,
|
|||||||
double
|
double
|
||||||
nsSMILKeySpline::GetTForX(double aX) const
|
nsSMILKeySpline::GetTForX(double aX) const
|
||||||
{
|
{
|
||||||
|
// Early return when aX == 1.0 to avoid floating-point inaccuracies.
|
||||||
|
if (aX == 1.0) {
|
||||||
|
return 1.0;
|
||||||
|
}
|
||||||
// Find interval where t lies
|
// Find interval where t lies
|
||||||
double intervalStart = 0.0;
|
double intervalStart = 0.0;
|
||||||
const double* currentSample = &mSampleValues[1];
|
const double* currentSample = &mSampleValues[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user