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

Unified Diff: Source/core/testing/Internals.cpp

Issue 22377008: Web Animations: Plug in PauseAnimationsForTesting (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@numberOfActiveAnimations
Patch Set: Included core/animation/DocumentTimline.h in Internals.cpp to fix compile error. 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index dba52a6173c98d9155fade3f81ddbb891aabd9fc..267b182b401d436687879e82ea91b369c5445ccc 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -41,6 +41,7 @@
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/SerializedScriptValue.h"
#include "bindings/v8/V8ThrowException.h"
+#include "core/animation/DocumentTimeline.h"
#include "core/css/StyleSheetContents.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/css/resolver/ViewportStyleResolver.h"
@@ -460,7 +461,9 @@ void Internals::pauseAnimations(double pauseTime, ExceptionState& es)
return;
}
- if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
+ if (RuntimeEnabledFeatures::webAnimationsCSSEnabled())
+ frame()->document()->timeline()->pauseAnimationsForTesting(pauseTime);
+ else
frame()->animation()->pauseAnimationsForTesting(pauseTime);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698