diff options
Diffstat (limited to 'WebCore/svg/SVGAnimateElement.h')
-rw-r--r-- | WebCore/svg/SVGAnimateElement.h | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/WebCore/svg/SVGAnimateElement.h b/WebCore/svg/SVGAnimateElement.h index ac5883c..43522a7 100644 --- a/WebCore/svg/SVGAnimateElement.h +++ b/WebCore/svg/SVGAnimateElement.h @@ -1,23 +1,23 @@ /* - Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org> - 2004, 2005 Rob Buis <buis@kde.org> - Copyright (C) 2008 Apple Inc. All rights reserved. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ + * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> + * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> + * Copyright (C) 2008 Apple Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ #ifndef SVGAnimateElement_h #define SVGAnimateElement_h @@ -26,9 +26,12 @@ #include "Color.h" #include "SVGAnimationElement.h" +#include "SVGPathByteStream.h" +#include <wtf/OwnPtr.h> namespace WebCore { class SVGPathSegList; + class SVGPointList; class SVGAnimateElement : public SVGAnimationElement { public: @@ -44,7 +47,7 @@ namespace WebCore { virtual float calculateDistance(const String& fromString, const String& toString); private: - enum PropertyType { NumberProperty, ColorProperty, StringProperty, PathProperty }; + enum PropertyType { NumberProperty, ColorProperty, StringProperty, PathProperty, PointsProperty }; PropertyType determinePropertyType(const String& attribute) const; PropertyType m_propertyType; @@ -58,9 +61,13 @@ namespace WebCore { String m_fromString; String m_toString; String m_animatedString; - RefPtr<SVGPathSegList> m_fromPath; - RefPtr<SVGPathSegList> m_toPath; - RefPtr<SVGPathSegList> m_animatedPath; + OwnPtr<SVGPathByteStream> m_fromPath; + OwnPtr<SVGPathByteStream> m_toPath; + OwnPtr<SVGPathByteStream> m_animatedPath; + SVGPathByteStream* m_animatedPathPointer; + RefPtr<SVGPointList> m_fromPoints; + RefPtr<SVGPointList> m_toPoints; + RefPtr<SVGPointList> m_animatedPoints; }; } // namespace WebCore |