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

Unified Diff: Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 135693003: Defer starting of animations until after compositing update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move some AnimationClock functions to cpp. Created 6 years, 10 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: Source/core/css/CSSComputedStyleDeclaration.cpp
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
index d41c9a7d9f9ce61f57aa388accfad5370d46b013..12179899c4d5ed218ec3718d3c6c781f14a28f8b 100644
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -1532,10 +1532,9 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
if (updateLayout) {
Document& document = styledNode->document();
- // If a compositor animation is running or animations have been updated
- // via the api we may need to service animations in order to generate
- // an up to date value.
- DocumentAnimations::serviceBeforeGetComputedStyle(*styledNode, propertyID);
+ // A timing update may be required if a compositor animation is running or animations
+ // have been updated via the api.
+ DocumentAnimations::updateAnimationTimingForGetComputedStyle(*styledNode, propertyID);
document.updateStyleForNodeIfNeeded(styledNode);

Powered by Google App Engine
This is Rietveld 408576698