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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2427293003: Fix calls to element.animate() with positive delays not being composited (Closed)
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 5341004566b9fe48d9347c16ad77cdaf467d5df5..a9fa9a7d84ed749f47c7599e9ba882c786f7a12e 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1235,12 +1235,13 @@ bool StyleResolver::applyAnimatedProperties(StyleResolverState& state,
CSSAnimations::calculateUpdate(animatingElement, *element, *state.style(),
state.parentStyle(), state.animationUpdate(),
this);
- if (state.animationUpdate().isEmpty())
- return false;
CSSAnimations::snapshotCompositorKeyframes(
*element, state.animationUpdate(), *state.style(), state.parentStyle());
+ if (state.animationUpdate().isEmpty())
+ return false;
+
if (state.style()->insideLink() != NotInsideLink) {
ASSERT(state.applyPropertyToRegularStyle());
state.setApplyPropertyToVisitedLinkStyle(true);
« no previous file with comments | « third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698