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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimationElement.h

Issue 2712343004: Tidy up instance time handling in SVGSMILElement (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimationElement.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, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au>
7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 class CORE_EXPORT SVGAnimationElement : public SVGSMILElement { 54 class CORE_EXPORT SVGAnimationElement : public SVGSMILElement {
55 DEFINE_WRAPPERTYPEINFO(); 55 DEFINE_WRAPPERTYPEINFO();
56 56
57 public: 57 public:
58 // SVGAnimationElement 58 // SVGAnimationElement
59 float getStartTime(ExceptionState&) const; 59 float getStartTime(ExceptionState&) const;
60 float getCurrentTime() const; 60 float getCurrentTime() const;
61 float getSimpleDuration(ExceptionState&) const; 61 float getSimpleDuration(ExceptionState&) const;
62 62
63 void beginElement(); 63 void beginElement() { beginElementAt(0); }
64 void beginElementAt(float offset); 64 void beginElementAt(float offset);
65 void endElement(); 65 void endElement() { endElementAt(0); }
66 void endElementAt(float offset); 66 void endElementAt(float offset);
67 67
68 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(begin, beginEvent); 68 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(begin, beginEvent);
69 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(end, endEvent); 69 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(end, endEvent);
70 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(repeat, repeatEvent); 70 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(repeat, repeatEvent);
71 71
72 virtual bool isAdditive(); 72 virtual bool isAdditive();
73 bool isAccumulated() const; 73 bool isAccumulated() const;
74 AnimationMode getAnimationMode() const { return m_animationMode; } 74 AnimationMode getAnimationMode() const { return m_animationMode; }
75 CalcMode getCalcMode() const { return m_calcMode; } 75 CalcMode getCalcMode() const { return m_calcMode; }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 Vector<gfx::CubicBezier> m_keySplines; 183 Vector<gfx::CubicBezier> m_keySplines;
184 String m_lastValuesAnimationFrom; 184 String m_lastValuesAnimationFrom;
185 String m_lastValuesAnimationTo; 185 String m_lastValuesAnimationTo;
186 CalcMode m_calcMode; 186 CalcMode m_calcMode;
187 AnimationMode m_animationMode; 187 AnimationMode m_animationMode;
188 }; 188 };
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // SVGAnimationElement_h 192 #endif // SVGAnimationElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698