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

Unified Diff: Source/core/animation/AnimationPlayer.h

Issue 399033002: Web Animations: Don't compare start time for AnimationPlayer sorting (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayer.h
diff --git a/Source/core/animation/AnimationPlayer.h b/Source/core/animation/AnimationPlayer.h
index 4825c26a566478019fe7e01d82ebbcf82e039616..6efd5c7cb33aadb7445c4fc4ffd98a44bd127d8a 100644
--- a/Source/core/animation/AnimationPlayer.h
+++ b/Source/core/animation/AnimationPlayer.h
@@ -126,20 +126,16 @@ public:
class SortInfo {
public:
friend class AnimationPlayer;
- bool operator<(const SortInfo& other) const;
- double startTime() const { return m_startTime; }
- bool hasLowerSequenceNumber(const SortInfo& other) const
+ bool operator<(const SortInfo& other) const
{
return m_sequenceNumber < other.m_sequenceNumber;
}
private:
- SortInfo(unsigned sequenceNumber, double startTime)
+ SortInfo(unsigned sequenceNumber)
: m_sequenceNumber(sequenceNumber)
- , m_startTime(startTime)
{
}
unsigned m_sequenceNumber;
- double m_startTime;
};
const SortInfo& sortInfo() const { return m_sortInfo; }
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698