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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h

Issue 2592103002: Improve separation between "SMIL times" and timestamps (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h
diff --git a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h
index ac3a12ef4662a324dab677d04beeb2fa0f2eb68e..6f5e99e918d2056abc450673eeaa66a520a37835 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.h
@@ -85,8 +85,8 @@ class CORE_EXPORT SVGSMILElement : public SVGElement, public SVGTests {
SMILTime previousIntervalBegin() const { return m_previousIntervalBegin; }
SMILTime simpleDuration() const;
- void seekToIntervalCorrespondingToTime(SMILTime elapsed);
- bool progress(SMILTime elapsed, bool seekToTime);
+ void seekToIntervalCorrespondingToTime(double elapsed);
+ bool progress(double elapsed, bool seekToTime);
SMILTime nextProgressTime() const;
void updateAnimatedValue(SVGSMILElement* resultElement) {
updateAnimation(m_lastPercent, m_lastRepeat, resultElement);
@@ -97,7 +97,7 @@ class CORE_EXPORT SVGSMILElement : public SVGElement, public SVGTests {
static SMILTime parseClockValue(const String&);
static SMILTime parseOffsetValue(const String&);
- bool isContributing(SMILTime elapsed) const;
+ bool isContributing(double elapsed) const;
bool isFrozen() const;
unsigned documentOrderIndex() const { return m_documentOrderIndex; }
@@ -176,7 +176,7 @@ class CORE_EXPORT SVGSMILElement : public SVGElement, public SVGTests {
enum RestartedInterval { DidNotRestartInterval, DidRestartInterval };
- RestartedInterval maybeRestartInterval(SMILTime elapsed);
+ RestartedInterval maybeRestartInterval(double elapsed);
void beginListChanged(SMILTime eventTime);
void endListChanged(SMILTime eventTime);
@@ -247,9 +247,9 @@ class CORE_EXPORT SVGSMILElement : public SVGElement, public SVGTests {
QualifiedName m_attributeName;
ActiveState determineActiveState(SMILTime elapsed) const;
- float calculateAnimationPercentAndRepeat(SMILTime elapsed,
+ float calculateAnimationPercentAndRepeat(double elapsed,
unsigned& repeat) const;
- SMILTime calculateNextProgressTime(SMILTime elapsed) const;
+ SMILTime calculateNextProgressTime(double elapsed) const;
Member<SVGElement> m_targetElement;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698