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

Side by Side Diff: Source/core/svg/animation/SVGSMILElement.h

Issue 306293005: Convert SVGSMILElement::resolveInterval to return an SMILInterval (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/animation/SVGSMILElement.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0; 140 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0;
141 141
142 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 142 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
143 143
144 enum BeginOrEnd { 144 enum BeginOrEnd {
145 Begin, 145 Begin,
146 End 146 End
147 }; 147 };
148 148
149 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const; 149 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const;
150
151 enum ResolveInterval {
152 FirstInterval,
153 NextInterval
154 };
155
156 SMILInterval resolveInterval(ResolveInterval) const;
150 void resolveFirstInterval(); 157 void resolveFirstInterval();
151 bool resolveNextInterval(); 158 bool resolveNextInterval();
152 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const;
153 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t; 159 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t;
154 SMILTime repeatingDuration() const; 160 SMILTime repeatingDuration() const;
155 161
156 enum RestartedInterval { 162 enum RestartedInterval {
157 DidNotRestartInterval, 163 DidNotRestartInterval,
158 DidRestartInterval 164 DidRestartInterval
159 }; 165 };
160 166
161 RestartedInterval maybeRestartInterval(SMILTime elapsed); 167 RestartedInterval maybeRestartInterval(SMILTime elapsed);
162 void beginListChanged(SMILTime eventTime); 168 void beginListChanged(SMILTime eventTime);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 { 278 {
273 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag) 279 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag)
274 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag)); 280 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag));
275 } 281 }
276 282
277 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 283 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
278 284
279 } 285 }
280 286
281 #endif // SVGSMILElement_h 287 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698