Remove unused variable movedSectionLogicalTop from table layout code.
[chromium-blink-merge.git] / third_party / WebKit / Source / core / svg / SVGAnimateMotionElement.h
blob51474cb9edd5b6c49494df0d86218dfcd09648a3
1 /*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 #ifndef SVGAnimateMotionElement_h
22 #define SVGAnimateMotionElement_h
24 #include "core/svg/SVGAnimationElement.h"
25 #include "platform/graphics/Path.h"
27 namespace blink {
29 class SVGAnimateMotionElement final : public SVGAnimationElement {
30 DEFINE_WRAPPERTYPEINFO();
31 public:
32 ~SVGAnimateMotionElement() override;
34 DECLARE_NODE_FACTORY(SVGAnimateMotionElement);
35 void updateAnimationPath();
37 private:
38 explicit SVGAnimateMotionElement(Document&);
40 bool hasValidAttributeType() override;
41 bool hasValidAttributeName() override;
43 void parseAttribute(const QualifiedName&, const AtomicString&) override;
45 void resetAnimatedType() override;
46 void clearAnimatedType() override;
47 bool calculateToAtEndOfDurationValue(const String& toAtEndOfDurationString) override;
48 bool calculateFromAndToValues(const String& fromString, const String& toString) override;
49 bool calculateFromAndByValues(const String& fromString, const String& byString) override;
50 void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement) override;
51 void applyResultsToTarget() override;
52 float calculateDistance(const String& fromString, const String& toString) override;
54 enum RotateMode {
55 RotateAngle,
56 RotateAuto,
57 RotateAutoReverse
59 RotateMode rotateMode() const;
61 bool m_hasToPointAtEndOfDuration;
63 void updateAnimationMode() override;
65 // Note: we do not support percentage values for to/from coords as the spec implies we should (opera doesn't either)
66 FloatPoint m_fromPoint;
67 FloatPoint m_toPoint;
68 FloatPoint m_toPointAtEndOfDuration;
70 Path m_path;
71 Path m_animationPath;
74 } // namespace blink
76 #endif // SVGAnimateMotionElement_h