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

Unified Diff: Source/core/animation/AnimatableValue.cpp

Issue 19744002: Web Animations: Add CSSAnimatableValueFactory API (partial implementation) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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/animation/AnimatableValue.cpp
diff --git a/Source/core/animation/AnimatableValue.cpp b/Source/core/animation/AnimatableValue.cpp
index 763788093f624bd6cd513c236a73c9dcd4827904..b15bcd52a52f0516295dd0183ecd43316afd2593 100644
--- a/Source/core/animation/AnimatableValue.cpp
+++ b/Source/core/animation/AnimatableValue.cpp
@@ -32,22 +32,11 @@
#include "core/animation/AnimatableValue.h"
#include "core/animation/AnimatableNeutral.h"
-#include "core/animation/AnimatableNumber.h"
-#include "core/animation/AnimatableUnknown.h"
#include <algorithm>
namespace WebCore {
-PassRefPtr<AnimatableValue> AnimatableValue::create(CSSValue* value)
-{
- // FIXME: Move this logic to a separate factory class.
- // FIXME: Handle all animatable CSSValue types.
- if (AnimatableNumber::canCreateFrom(value))
- return AnimatableNumber::create(value);
- return AnimatableUnknown::create(value);
-}
-
const AnimatableValue* AnimatableValue::neutralValue()
{
static AnimatableNeutral* neutralSentinelValue = AnimatableNeutral::create().leakRef();

Powered by Google App Engine
This is Rietveld 408576698