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

Unified Diff: third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp

Issue 1425143006: Revert of Web Animations: Use a single animation clock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp b/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
index cef78be33e3a2c376f7c2d67967b9bd59e904cf0..adfb395bd1316a5e7707d006ee46f04a9c6f5e54 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
@@ -44,7 +44,6 @@
#include "core/animation/animatable/AnimatableValueTestHelper.h"
#include "core/dom/Document.h"
#include "core/layout/LayoutObject.h"
-#include "core/testing/DummyPageHolder.h"
#include "platform/geometry/FloatBox.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/filters/FilterOperations.h"
@@ -84,7 +83,6 @@
RefPtrWillBePersistent<Document> m_document;
RefPtrWillBePersistent<Element> m_element;
Persistent<AnimationTimeline> m_timeline;
- OwnPtr<DummyPageHolder> m_pageHolder;
virtual void SetUp()
{
@@ -107,8 +105,7 @@
m_keyframeVector5 = createCompositableFloatKeyframeVector(5);
m_keyframeAnimationEffect5 = AnimatableValueKeyframeEffectModel::create(*m_keyframeVector5);
- m_pageHolder = DummyPageHolder::create();
- m_document = &m_pageHolder->document();
+ m_document = Document::create();
m_document->animationClock().resetTimeForTesting();
m_timeline = AnimationTimeline::create(m_document.get());
m_element = m_document->createElement("test", ASSERT_NO_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698