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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.h

Issue 2105743002: Optimize style recalc when adding @keyframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test review issues Created 4 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void setCurrentTime(double); 84 void setCurrentTime(double);
85 void setCurrentTimeInternal(double); 85 void setCurrentTimeInternal(double);
86 double effectiveTime(); 86 double effectiveTime();
87 void pauseAnimationsForTesting(double); 87 void pauseAnimationsForTesting(double);
88 88
89 void setAllCompositorPending(bool sourceChanged = false); 89 void setAllCompositorPending(bool sourceChanged = false);
90 void setOutdatedAnimation(Animation*); 90 void setOutdatedAnimation(Animation*);
91 void clearOutdatedAnimation(Animation*); 91 void clearOutdatedAnimation(Animation*);
92 bool hasOutdatedAnimation() const { return m_outdatedAnimationCount > 0; } 92 bool hasOutdatedAnimation() const { return m_outdatedAnimationCount > 0; }
93 bool needsAnimationTimingUpdate(); 93 bool needsAnimationTimingUpdate();
94 void invalidateKeyframeEffects();
94 95
95 void setPlaybackRate(double); 96 void setPlaybackRate(double);
96 double playbackRate() const; 97 double playbackRate() const;
97 98
98 CompositorAnimationTimeline* compositorTimeline() const { return m_composito rTimeline.get(); } 99 CompositorAnimationTimeline* compositorTimeline() const { return m_composito rTimeline.get(); }
99 100
100 Document* document() { return m_document.get(); } 101 Document* document() { return m_document.get(); }
101 void wake(); 102 void wake();
102 void resetForTesting(); 103 void resetForTesting();
103 104
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Member<AnimationTimeline> m_timeline; 147 Member<AnimationTimeline> m_timeline;
147 Timer<AnimationTimelineTiming> m_timer; 148 Timer<AnimationTimelineTiming> m_timer;
148 }; 149 };
149 150
150 friend class AnimationAnimationTimelineTest; 151 friend class AnimationAnimationTimelineTest;
151 }; 152 };
152 153
153 } // namespace blink 154 } // namespace blink
154 155
155 #endif 156 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/Animation.cpp ('k') | third_party/WebKit/Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698