Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: Source/WebCore/rendering/RenderProgress.cpp

Issue 10871074: Merge 124556 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderProgress.h ('k') | Source/WebCore/rendering/RenderSlider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderProgress.h ('k') | Source/WebCore/rendering/RenderSlider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698