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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp

Issue 2105743002: Optimize style recalc when adding @keyframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test review issues Created 4 years, 6 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
Index: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
index e753bba98fa8b3a49529b1a33c63b0ac6a7b02af..99b35e68c0b3892259cf7147c11cd1164876cb9d 100644
--- a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
@@ -347,6 +347,12 @@ double AnimationTimeline::playbackRate() const
return m_playbackRate;
}
+void AnimationTimeline::invalidateKeyframeEffects()
+{
+ for (const auto& animation : m_animations)
+ animation->invalidateKeyframeEffect();
+}
+
DEFINE_TRACE(AnimationTimeline)
{
visitor->trace(m_document);

Powered by Google App Engine
This is Rietveld 408576698