static PassOwnPtr<SVGAnimatedType> createAngleAndEnumeration(std::pair<SVGAngle, unsigned>*);
static PassOwnPtr<SVGAnimatedType> createColor(StyleColor*);
static PassOwnPtr<SVGAnimatedType> createEnumeration(unsigned*);
- static PassOwnPtr<SVGAnimatedType> createInteger(int*);
- static PassOwnPtr<SVGAnimatedType> createIntegerOptionalInteger(std::pair<int, int>*);
static PassOwnPtr<SVGAnimatedType> createPath(PassOwnPtr<SVGPathByteStream>);
- static PassOwnPtr<SVGAnimatedType> createString(String*);
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>);
return *m_data.enumeration;
}
- int& integer()
- {
- ASSERT(m_type == AnimatedInteger);
- return *m_data.integer;
- }
-
- pair<int, int>& integerOptionalInteger()
- {
- ASSERT(m_type == AnimatedIntegerOptionalInteger);
- return *m_data.integerOptionalInteger;
- }
-
SVGPathByteStream* path()
{
ASSERT(m_type == AnimatedPath);
return m_data.path;
}
- String& string()
- {
- ASSERT(m_type == AnimatedString);
- return *m_data.string;
- }
-
SVGTransformList& transformList()
{
ASSERT(m_type == AnimatedTransformList);
std::pair<SVGAngle, unsigned>* angleAndEnumeration;
StyleColor* color;
unsigned* enumeration;
- int* integer;
- std::pair<int, int>* integerOptionalInteger;
SVGPathByteStream* path;
- String* string;
SVGTransformList* transformList;
} m_data;
RefPtr<NewSVGPropertyBase> m_newProperty;