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

Side by Side Diff: Source/core/svg/SVGAnimateElement.h

Issue 180113007: [SVG] refactor determineAnimatedPropertyType logic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 20 matching lines...) Expand all
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class SVGAnimatedProperty; 33 class SVGAnimatedProperty;
34 class SVGAnimatedTypeAnimator; 34 class SVGAnimatedTypeAnimator;
35 35
36 class SVGAnimateElement : public SVGAnimationElement { 36 class SVGAnimateElement : public SVGAnimationElement {
37 public: 37 public:
38 static PassRefPtr<SVGAnimateElement> create(Document&); 38 static PassRefPtr<SVGAnimateElement> create(Document&);
39 virtual ~SVGAnimateElement(); 39 virtual ~SVGAnimateElement();
40 40
41 AnimatedPropertyType determineAnimatedPropertyType(SVGElement*) const;
42
43 protected: 41 protected:
44 SVGAnimateElement(const QualifiedName&, Document&); 42 SVGAnimateElement(const QualifiedName&, Document&);
45 43
46 virtual void resetAnimatedType() OVERRIDE FINAL; 44 virtual void resetAnimatedType() OVERRIDE FINAL;
47 virtual void clearAnimatedType(SVGElement* targetElement) OVERRIDE FINAL; 45 virtual void clearAnimatedType(SVGElement* targetElement) OVERRIDE FINAL;
48 46
49 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration String) OVERRIDE FINAL; 47 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration String) OVERRIDE FINAL;
50 virtual bool calculateFromAndToValues(const String& fromString, const String & toString) OVERRIDE FINAL; 48 virtual bool calculateFromAndToValues(const String& fromString, const String & toString) OVERRIDE FINAL;
51 virtual bool calculateFromAndByValues(const String& fromString, const String & byString) OVERRIDE FINAL; 49 virtual bool calculateFromAndByValues(const String& fromString, const String & byString) OVERRIDE FINAL;
52 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement) OVERRIDE FINAL; 50 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement) OVERRIDE FINAL;
(...skipping 27 matching lines...) Expand all
80 return node.hasTagName(SVGNames::animateTag) 78 return node.hasTagName(SVGNames::animateTag)
81 || node.hasTagName(SVGNames::animateTransformTag) 79 || node.hasTagName(SVGNames::animateTransformTag)
82 || node.hasTagName(SVGNames::setTag); 80 || node.hasTagName(SVGNames::setTag);
83 } 81 }
84 82
85 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); 83 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
86 84
87 } // namespace WebCore 85 } // namespace WebCore
88 86
89 #endif // SVGAnimateElement_h 87 #endif // SVGAnimateElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698