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

Unified Diff: sky/engine/web/WebDocument.cpp

Issue 760183003: Enable/Unprefix Animations & Transitions, add basic tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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 | « sky/engine/public/web/WebDocument.h ('k') | sky/engine/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebDocument.cpp
diff --git a/sky/engine/web/WebDocument.cpp b/sky/engine/web/WebDocument.cpp
index ac5bd12fc12192422c7c4167c992f18db011b7c1..954f0be142d5e382b48f405988cba3c81c06c7c3 100644
--- a/sky/engine/web/WebDocument.cpp
+++ b/sky/engine/web/WebDocument.cpp
@@ -35,6 +35,7 @@
#include "sky/engine/bindings/core/v8/ExceptionState.h"
#include "sky/engine/bindings/core/v8/ScriptState.h"
#include "sky/engine/bindings/core/v8/ScriptValue.h"
+#include "sky/engine/core/animation/AnimationTimeline.h"
#include "sky/engine/core/css/StyleSheetContents.h"
#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/dom/Element.h"
@@ -138,6 +139,11 @@ v8::Handle<v8::Value> WebDocument::registerEmbedderCustomElement(const WebString
return constructor.v8Value();
}
+void WebDocument::pauseAnimationsForTesting(double pauseTime) const {
+ constUnwrap<Document>()->frame()->view()->updateLayoutAndStyleForPainting();
+ constUnwrap<Document>()->timeline().pauseAnimationsForTesting(pauseTime);
+}
+
WebDocument::WebDocument(const PassRefPtr<Document>& elem)
: WebNode(elem)
{
« no previous file with comments | « sky/engine/public/web/WebDocument.h ('k') | sky/engine/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698