| Index: third_party/WebKit/Source/core/layout/LayoutProgress.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
|
| index 5b2c45cf7b105c6d8d61788b09b3473ac276dcad..9ec5d1bfa1ec38637c52c3963cb7a2c68be6927e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
|
| @@ -74,6 +74,16 @@ bool LayoutProgress::isDeterminate() const
|
| && HTMLProgressElement::InvalidPosition != position());
|
| }
|
|
|
| +bool LayoutProgress::isAnimationTimerActive() const
|
| +{
|
| + return m_animationTimer.isActive();
|
| +}
|
| +
|
| +bool LayoutProgress::isAnimating() const
|
| +{
|
| + return m_animating;
|
| +}
|
| +
|
| void LayoutProgress::animationTimerFired(Timer<LayoutProgress>*)
|
| {
|
| setShouldDoFullPaintInvalidation();
|
| @@ -86,7 +96,7 @@ void LayoutProgress::updateAnimationState()
|
| m_animationDuration = LayoutTheme::theme().animationDurationForProgressBar();
|
| m_animationRepeatInterval = LayoutTheme::theme().animationRepeatIntervalForProgressBar();
|
|
|
| - bool animating = style()->hasAppearance() && m_animationDuration > 0;
|
| + bool animating = !isDeterminate() && style()->hasAppearance() && m_animationDuration > 0;
|
| if (animating == m_animating)
|
| return;
|
|
|
|
|