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

Unified Diff: Source/core/svg/SVGAnimatedType.h

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove m_zoomAndPan Created 6 years, 10 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/svg/SVGAnimatedTransformList.cpp ('k') | Source/core/svg/SVGAnimatedType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedType.h
diff --git a/Source/core/svg/SVGAnimatedType.h b/Source/core/svg/SVGAnimatedType.h
index b53842807796ea8e14a98c7750856949eb39304e..3bdc8e83e1c537127ae9700f0454e2967dfdae21 100644
--- a/Source/core/svg/SVGAnimatedType.h
+++ b/Source/core/svg/SVGAnimatedType.h
@@ -20,10 +20,7 @@
#ifndef SVGAnimatedType_h
#define SVGAnimatedType_h
-#include "core/css/StyleColor.h"
#include "core/svg/SVGAngle.h"
-#include "core/svg/SVGColor.h"
-#include "core/svg/SVGTransformList.h"
#include "core/svg/properties/NewSVGAnimatedProperty.h"
#include "core/svg/properties/SVGPropertyInfo.h"
@@ -36,33 +33,19 @@ class SVGAnimatedType FINAL {
public:
~SVGAnimatedType();
- static PassOwnPtr<SVGAnimatedType> createColor(StyleColor*);
static PassOwnPtr<SVGAnimatedType> createPath(PassOwnPtr<SVGPathByteStream>);
- static PassOwnPtr<SVGAnimatedType> createTransformList(SVGTransformList*);
// Temporary compatibility layer. This shouldn't be needed after all properties are switched to NewSVGAnimatedProperty impl.
static PassOwnPtr<SVGAnimatedType> createNewProperty(PassRefPtr<NewSVGPropertyBase>);
static bool supportsAnimVal(AnimatedPropertyType);
AnimatedPropertyType type() const { return m_type; }
- StyleColor& color()
- {
- ASSERT(m_type == AnimatedColor);
- return *m_data.color;
- }
-
SVGPathByteStream* path()
{
ASSERT(m_type == AnimatedPath);
return m_data.path;
}
- SVGTransformList& transformList()
- {
- ASSERT(m_type == AnimatedTransformList);
- return *m_data.transformList;
- }
-
RefPtr<NewSVGPropertyBase>& newProperty()
{
ASSERT(m_newProperty);
@@ -82,9 +65,7 @@ private:
{
}
- StyleColor* color;
SVGPathByteStream* path;
- SVGTransformList* transformList;
} m_data;
RefPtr<NewSVGPropertyBase> m_newProperty;
};
« no previous file with comments | « Source/core/svg/SVGAnimatedTransformList.cpp ('k') | Source/core/svg/SVGAnimatedType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698