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

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

Issue 2757543002: Ensure baseComputedStyle optimisation is cleared during registered custom property animations (Closed)
Patch Set: Rebased Created 3 years, 9 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/AnimationClock.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationClock.cpp b/third_party/WebKit/Source/core/animation/AnimationClock.cpp
index 761be632caa70cb27e4641ef22bfa425cd7b838d..3dad64fc7b22945148146d673445457bae08a30a 100644
--- a/third_party/WebKit/Source/core/animation/AnimationClock.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationClock.cpp
@@ -52,7 +52,8 @@ void AnimationClock::updateTime(double time) {
}
double AnimationClock::currentTime() {
- if (m_taskForWhichTimeWasCalculated != s_currentlyRunningTask) {
+ if (m_monotonicallyIncreasingTime &&
+ m_taskForWhichTimeWasCalculated != s_currentlyRunningTask) {
const double currentTime = m_monotonicallyIncreasingTime();
if (m_time < currentTime) {
// Advance to the first estimated frame after the current time.
« no previous file with comments | « third_party/WebKit/Source/core/animation/AnimationClock.h ('k') | third_party/WebKit/Source/core/animation/ElementAnimation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698