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

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

Issue 19500005: [SVG] Refactoring accumulate logic for animateMotion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | Source/core/svg/SVGAnimateMotionElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement); 50 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement);
51 virtual void applyResultsToTarget(); 51 virtual void applyResultsToTarget();
52 virtual float calculateDistance(const String& fromString, const String& toSt ring); 52 virtual float calculateDistance(const String& fromString, const String& toSt ring);
53 53
54 enum RotateMode { 54 enum RotateMode {
55 RotateAngle, 55 RotateAngle,
56 RotateAuto, 56 RotateAuto,
57 RotateAutoReverse 57 RotateAutoReverse
58 }; 58 };
59 RotateMode rotateMode() const; 59 RotateMode rotateMode() const;
60 void buildTransformForProgress(AffineTransform*, float percentage);
61 60
62 bool m_hasToPointAtEndOfDuration; 61 bool m_hasToPointAtEndOfDuration;
63 62
64 virtual void updateAnimationMode() OVERRIDE; 63 virtual void updateAnimationMode() OVERRIDE;
65 64
66 // Note: we do not support percentage values for to/from coords as the spec implies we should (opera doesn't either) 65 // Note: we do not support percentage values for to/from coords as the spec implies we should (opera doesn't either)
67 FloatPoint m_fromPoint; 66 FloatPoint m_fromPoint;
68 FloatPoint m_toPoint; 67 FloatPoint m_toPoint;
69 FloatPoint m_toPointAtEndOfDuration; 68 FloatPoint m_toPointAtEndOfDuration;
70 69
71 Path m_path; 70 Path m_path;
72 Path m_animationPath; 71 Path m_animationPath;
73 }; 72 };
74 73
75 } // namespace WebCore 74 } // namespace WebCore
76 75
77 #endif // SVGAnimateMotionElement_h 76 #endif // SVGAnimateMotionElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGAnimateMotionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698