| Index: cc/animation/scroll_offset_animation_curve.cc
|
| diff --git a/cc/animation/scroll_offset_animation_curve.cc b/cc/animation/scroll_offset_animation_curve.cc
|
| index 87a29c1e0777c708cd0c285cdca1f1ff72d3b35c..68761fbf8d17abd30c5f844ac83080607ad69535 100644
|
| --- a/cc/animation/scroll_offset_animation_curve.cc
|
| +++ b/cc/animation/scroll_offset_animation_curve.cc
|
| @@ -18,11 +18,11 @@ namespace cc {
|
|
|
| namespace {
|
|
|
| -static float MaximumDimension(gfx::Vector2dF delta) {
|
| +static float MaximumDimension(const gfx::Vector2dF& delta) {
|
| return std::max(std::abs(delta.x()), std::abs(delta.y()));
|
| }
|
|
|
| -static base::TimeDelta DurationFromDelta(gfx::Vector2dF delta) {
|
| +static base::TimeDelta DurationFromDelta(const gfx::Vector2dF& delta) {
|
| // The duration of a scroll animation depends on the size of the scroll.
|
| // The exact relationship between the size and the duration isn't specified
|
| // by the CSSOM View smooth scroll spec and is instead left up to user agents
|
|
|