| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 HTMLProgressElement* element = progressElement(); | 55 HTMLProgressElement* element = progressElement(); |
| 56 if (m_position == element->position()) | 56 if (m_position == element->position()) |
| 57 return; | 57 return; |
| 58 m_position = element->position(); | 58 m_position = element->position(); |
| 59 | 59 |
| 60 updateAnimationState(); | 60 updateAnimationState(); |
| 61 RenderBlock::updateFromElement(); | 61 RenderBlock::updateFromElement(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool RenderProgress::canBeReplacedWithInlineRunIn() const |
| 65 { |
| 66 return false; |
| 67 } |
| 68 |
| 64 double RenderProgress::animationProgress() const | 69 double RenderProgress::animationProgress() const |
| 65 { | 70 { |
| 66 return m_animating ? (fmod((currentTime() - m_animationStartTime), m_animati
onDuration) / m_animationDuration) : 0; | 71 return m_animating ? (fmod((currentTime() - m_animationStartTime), m_animati
onDuration) / m_animationDuration) : 0; |
| 67 } | 72 } |
| 68 | 73 |
| 69 bool RenderProgress::isDeterminate() const | 74 bool RenderProgress::isDeterminate() const |
| 70 { | 75 { |
| 71 return (HTMLProgressElement::IndeterminatePosition != position() | 76 return (HTMLProgressElement::IndeterminatePosition != position() |
| 72 && HTMLProgressElement::InvalidPosition != position()); | 77 && HTMLProgressElement::InvalidPosition != position()); |
| 73 } | 78 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 98 } | 103 } |
| 99 | 104 |
| 100 HTMLProgressElement* RenderProgress::progressElement() const | 105 HTMLProgressElement* RenderProgress::progressElement() const |
| 101 { | 106 { |
| 102 return static_cast<HTMLProgressElement*>(node()); | 107 return static_cast<HTMLProgressElement*>(node()); |
| 103 } | 108 } |
| 104 | 109 |
| 105 } // namespace WebCore | 110 } // namespace WebCore |
| 106 | 111 |
| 107 #endif | 112 #endif |
| OLD | NEW |