| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool LayoutProgress::isAnimationTimerActive() const | 77 bool LayoutProgress::isAnimationTimerActive() const |
| 78 { | 78 { |
| 79 return m_animationTimer.isActive(); | 79 return m_animationTimer.isActive(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool LayoutProgress::isAnimating() const | 82 bool LayoutProgress::isAnimating() const |
| 83 { | 83 { |
| 84 return m_animating; | 84 return m_animating; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void LayoutProgress::animationTimerFired(Timer<LayoutProgress>*) | 87 void LayoutProgress::animationTimerFired(TimerBase*) |
| 88 { | 88 { |
| 89 setShouldDoFullPaintInvalidation(); | 89 setShouldDoFullPaintInvalidation(); |
| 90 if (!m_animationTimer.isActive() && m_animating) | 90 if (!m_animationTimer.isActive() && m_animating) |
| 91 m_animationTimer.startOneShot(m_animationRepeatInterval, BLINK_FROM_HERE
); | 91 m_animationTimer.startOneShot(m_animationRepeatInterval, BLINK_FROM_HERE
); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void LayoutProgress::updateAnimationState() | 94 void LayoutProgress::updateAnimationState() |
| 95 { | 95 { |
| 96 m_animationDuration = LayoutTheme::theme().animationDurationForProgressBar()
; | 96 m_animationDuration = LayoutTheme::theme().animationDurationForProgressBar()
; |
| 97 m_animationRepeatInterval = LayoutTheme::theme().animationRepeatIntervalForP
rogressBar(); | 97 m_animationRepeatInterval = LayoutTheme::theme().animationRepeatIntervalForP
rogressBar(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 108 m_animationTimer.stop(); | 108 m_animationTimer.stop(); |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 HTMLProgressElement* LayoutProgress::progressElement() const | 112 HTMLProgressElement* LayoutProgress::progressElement() const |
| 113 { | 113 { |
| 114 return toHTMLProgressElement(node()); | 114 return toHTMLProgressElement(node()); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| OLD | NEW |