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) |
{ |