Bug 1544216 Part 2 - no else after return r=birtles
This commit is contained in:
@@ -81,11 +81,11 @@ double SMILKeySpline::GetTForX(double aX) const {
|
||||
double initialSlope = GetSlope(guessForT, mX1, mX2);
|
||||
if (initialSlope >= NEWTON_MIN_SLOPE) {
|
||||
return NewtonRaphsonIterate(aX, guessForT);
|
||||
} else if (initialSlope == 0.0) {
|
||||
return guessForT;
|
||||
} else {
|
||||
return BinarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
|
||||
}
|
||||
if (initialSlope == 0.0) {
|
||||
return guessForT;
|
||||
}
|
||||
return BinarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
|
||||
}
|
||||
|
||||
double SMILKeySpline::NewtonRaphsonIterate(double aX, double aGuessT) const {
|
||||
|
||||
Reference in New Issue
Block a user