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

Side by Side Diff: Source/core/animation/Timing.h

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and address comments Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ASSERT(std::isnan(iterationDuration) || iterationDuration >= 0); 86 ASSERT(std::isnan(iterationDuration) || iterationDuration >= 0);
87 ASSERT(std::isfinite(playbackRate)); 87 ASSERT(std::isfinite(playbackRate));
88 ASSERT(timingFunction); 88 ASSERT(timingFunction);
89 } 89 }
90 90
91 bool operator==(const Timing &other) const 91 bool operator==(const Timing &other) const
92 { 92 {
93 return startDelay == other.startDelay && endDelay == other.endDelay 93 return startDelay == other.startDelay && endDelay == other.endDelay
94 && fillMode == other.fillMode && iterationStart == other.iterationSt art 94 && fillMode == other.fillMode && iterationStart == other.iterationSt art
95 && iterationCount == other.iterationCount && iterationDuration == ot her.iterationDuration 95 && iterationCount == other.iterationCount && iterationDuration == ot her.iterationDuration
96 && playbackRate == other.playbackRate && direction == other.directio n; 96 && playbackRate == other.playbackRate && direction == other.directio n
97 && *timingFunction == *other.timingFunction;
97 } 98 }
98 99
99 bool operator!=(const Timing &other) const 100 bool operator!=(const Timing &other) const
100 { 101 {
101 return !(*this == other); 102 return !(*this == other);
102 } 103 }
103 104
104 double startDelay; 105 double startDelay;
105 double endDelay; 106 double endDelay;
106 FillMode fillMode; 107 FillMode fillMode;
107 double iterationStart; 108 double iterationStart;
108 double iterationCount; 109 double iterationCount;
109 double iterationDuration; 110 double iterationDuration;
110 double playbackRate; 111 double playbackRate;
111 PlaybackDirection direction; 112 PlaybackDirection direction;
112 RefPtr<TimingFunction> timingFunction; 113 RefPtr<TimingFunction> timingFunction;
113 }; 114 };
114 115
115 } // namespace blink 116 } // namespace blink
116 117
117 #endif 118 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698