| Index: ui/gfx/animation/linear_animation.cc
|
| diff --git a/ui/gfx/animation/linear_animation.cc b/ui/gfx/animation/linear_animation.cc
|
| index b3f3df0e0c94d67bb6448dd72f2df766abd48390..0c9fa6326fc38df9a7162d1c717285230be81e97 100644
|
| --- a/ui/gfx/animation/linear_animation.cc
|
| +++ b/ui/gfx/animation/linear_animation.cc
|
| @@ -48,7 +48,7 @@ double LinearAnimation::GetCurrentValue() const {
|
| void LinearAnimation::SetCurrentValue(double new_value) {
|
| new_value = std::max(0.0, std::min(1.0, new_value));
|
| base::TimeDelta time_delta = base::TimeDelta::FromMicroseconds(
|
| - duration_.InMicroseconds() * (new_value - state_));
|
| + static_cast<int64>(duration_.InMicroseconds() * (new_value - state_)));
|
| SetStartTime(start_time() - time_delta);
|
| state_ = new_value;
|
| }
|
|
|