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

Unified Diff: Source/core/animation/AnimatableLengthPoint3D.h

Issue 98663004: Add support for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 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/ActiveAnimations.cpp ('k') | Source/core/animation/AnimatableLengthPoint3D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableLengthPoint3D.h
diff --git a/Source/core/animation/AnimatableLengthPoint.h b/Source/core/animation/AnimatableLengthPoint3D.h
similarity index 63%
copy from Source/core/animation/AnimatableLengthPoint.h
copy to Source/core/animation/AnimatableLengthPoint3D.h
index 1fb404bea3394a19b8a5db64863323c45e34b32d..10168860892848d9d5e4f1db061b653254520c20 100644
--- a/Source/core/animation/AnimatableLengthPoint.h
+++ b/Source/core/animation/AnimatableLengthPoint3D.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,48 +28,49 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AnimatableLengthPoint_h
-#define AnimatableLengthPoint_h
+#ifndef AnimatableLengthPoint3D_h
+#define AnimatableLengthPoint3D_h
#include "core/animation/AnimatableValue.h"
namespace WebCore {
-class AnimatableLengthPoint FINAL : public AnimatableValue {
+class AnimatableLengthPoint3D FINAL : public AnimatableValue {
public:
- virtual ~AnimatableLengthPoint() { }
- static PassRefPtrWillBeRawPtr<AnimatableLengthPoint> create(PassRefPtrWillBeRawPtr<AnimatableValue> x, PassRefPtrWillBeRawPtr<AnimatableValue> y)
+ virtual ~AnimatableLengthPoint3D() { }
+ static PassRefPtr<AnimatableLengthPoint3D> create(PassRefPtr<AnimatableValue> x, PassRefPtr<AnimatableValue> y, PassRefPtr<AnimatableValue> z)
{
- return adoptRefWillBeNoop(new AnimatableLengthPoint(x, y));
+ return adoptRef(new AnimatableLengthPoint3D(x, y, z));
}
const AnimatableValue* x() const { return m_x.get(); }
const AnimatableValue* y() const { return m_y.get(); }
-
- virtual void trace(Visitor*) OVERRIDE;
+ const AnimatableValue* z() const { return m_z.get(); }
protected:
- virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
- virtual PassRefPtrWillBeRawPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE;
+ virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
+ virtual PassRefPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE;
private:
- AnimatableLengthPoint(PassRefPtrWillBeRawPtr<AnimatableValue> x, PassRefPtrWillBeRawPtr<AnimatableValue> y)
+ AnimatableLengthPoint3D(PassRefPtr<AnimatableValue> x, PassRefPtr<AnimatableValue> y, PassRefPtr<AnimatableValue> z)
: m_x(x)
, m_y(y)
+ , m_z(z)
{
}
- virtual AnimatableType type() const OVERRIDE { return TypeLengthPoint; }
+ virtual AnimatableType type() const OVERRIDE { return TypeLengthPoint3D; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- RefPtrWillBeMember<AnimatableValue> m_x;
- RefPtrWillBeMember<AnimatableValue> m_y;
+ RefPtr<AnimatableValue> m_x;
+ RefPtr<AnimatableValue> m_y;
+ RefPtr<AnimatableValue> m_z;
};
-inline const AnimatableLengthPoint* toAnimatableLengthPoint(const AnimatableValue* value)
+inline const AnimatableLengthPoint3D* toAnimatableLengthPoint3D(const AnimatableValue* value)
{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLengthPoint());
- return static_cast<const AnimatableLengthPoint*>(value);
+ ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLengthPoint3D());
+ return static_cast<const AnimatableLengthPoint3D*>(value);
}
} // namespace WebCore
-#endif // AnimatableLengthPoint_h
+#endif // AnimatableLengthPoint3D_h
« no previous file with comments | « Source/core/animation/ActiveAnimations.cpp ('k') | Source/core/animation/AnimatableLengthPoint3D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698