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

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: Move folders and add const to param 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
« no previous file with comments | « Source/core/animation/AnimatableValue.h ('k') | Source/core/animation/KeyframeAnimationEffectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableValue.cpp
diff --git a/Source/core/animation/AnimatableValue.cpp b/Source/core/animation/AnimatableValue.cpp
index 63af8cbb00ccad50a959c8f3eca1568d40fdd4b8..25cce2d9a2dd97ec591d962175fae0cde6ebd2d7 100644
--- a/Source/core/animation/AnimatableValue.cpp
+++ b/Source/core/animation/AnimatableValue.cpp
@@ -30,25 +30,12 @@
#include "config.h"
#include "core/animation/AnimatableValue.h"
-
#include "core/animation/AnimatableNeutral.h"
-#include "core/animation/AnimatableNumber.h"
-#include "core/animation/AnimatableUnknown.h"
#include "core/animation/DeferredAnimatableValue.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();
« no previous file with comments | « Source/core/animation/AnimatableValue.h ('k') | Source/core/animation/KeyframeAnimationEffectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698