Commit b1d8202a authored by thakis@chromium.org's avatar thakis@chromium.org

Fix "missing return" gcc warning in ScrollAnimatorNone

https://bugs.webkit.org/show_bug.cgi?id=66480

Reviewed by Tony Chang.

* platform/ScrollAnimatorNone.cpp:
(WebCore::ScrollAnimatorNone::PerAxisData::curveAt):
(WebCore::ScrollAnimatorNone::PerAxisData::curveDerivativeAt):


git-svn-id: svn://svn.chromium.org/blink/trunk@93328 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 22dc6040
2011-08-18 Nico Weber <thakis@chromium.org>
Fix "missing return" gcc warning in ScrollAnimatorNone
https://bugs.webkit.org/show_bug.cgi?id=66480
Reviewed by Tony Chang.
* platform/ScrollAnimatorNone.cpp:
(WebCore::ScrollAnimatorNone::PerAxisData::curveAt):
(WebCore::ScrollAnimatorNone::PerAxisData::curveDerivativeAt):
2011-08-18 James Simonsen <simonjam@chromium.org> 2011-08-18 James Simonsen <simonjam@chromium.org>
Revalidate expired resources if they're requested after the initial document load Revalidate expired resources if they're requested after the initial document load
...@@ -98,6 +98,7 @@ double ScrollAnimatorNone::PerAxisData::curveAt(Curve curve, double t) ...@@ -98,6 +98,7 @@ double ScrollAnimatorNone::PerAxisData::curveAt(Curve curve, double t)
t -= 2.625 / 2.75; t -= 2.625 / 2.75;
return 7.5625 * t * t + .984375; return 7.5625 * t * t + .984375;
} }
return 0;
} }
double ScrollAnimatorNone::PerAxisData::attackCurve(Curve curve, double deltaTime, double curveT, double startPosition, double attackPosition) double ScrollAnimatorNone::PerAxisData::attackCurve(Curve curve, double deltaTime, double curveT, double startPosition, double attackPosition)
...@@ -126,6 +127,7 @@ double ScrollAnimatorNone::PerAxisData::curveDerivativeAt(Curve curve, double t) ...@@ -126,6 +127,7 @@ double ScrollAnimatorNone::PerAxisData::curveDerivativeAt(Curve curve, double t)
case Bounce: case Bounce:
return t; return t;
} }
return 0;
} }
ScrollAnimatorNone::PerAxisData::PerAxisData(ScrollAnimatorNone* parent, float* currentPosition) ScrollAnimatorNone::PerAxisData::PerAxisData(ScrollAnimatorNone* parent, float* currentPosition)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment