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

Unified Diff: Source/core/animation/KeyframeAnimationEffect.cpp

Issue 21779003: Web Animations CSS: Snapshot missing start/end Keyframes and remove duplicates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make it build. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/KeyframeAnimationEffect.h ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/KeyframeAnimationEffect.cpp
diff --git a/Source/core/animation/KeyframeAnimationEffect.cpp b/Source/core/animation/KeyframeAnimationEffect.cpp
index 1db49f7bb4ab41daecbff1f118847f86c8de66d5..cc5063c0ab260ece63f3ad9cdef984c3eefaeff2 100644
--- a/Source/core/animation/KeyframeAnimationEffect.cpp
+++ b/Source/core/animation/KeyframeAnimationEffect.cpp
@@ -95,11 +95,6 @@ private:
double m_fraction;
};
-bool compareOffsets(const RefPtr<Keyframe>& a, const RefPtr<Keyframe>& b)
-{
- return a->offset() < b->offset();
-}
-
} // namespace
@@ -167,7 +162,7 @@ KeyframeAnimationEffect::KeyframeVector KeyframeAnimationEffect::normalizedKeyfr
ASSERT(!std::isnan((*iter)->offset()));
// Sort by offset.
- std::stable_sort(keyframes.begin(), keyframes.end(), compareOffsets);
+ std::stable_sort(keyframes.begin(), keyframes.end(), Keyframe::compareOffsets);
return keyframes;
}
« no previous file with comments | « Source/core/animation/KeyframeAnimationEffect.h ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698