Chromium Code Reviews| Index: Source/core/animation/DocumentTimeline.h |
| diff --git a/Source/core/animation/DocumentTimeline.h b/Source/core/animation/DocumentTimeline.h |
| index 200568385440ed73b6229bb3e8dce711e0272ba2..0a998b3d5e31fe76898db988a732e7e5ea4dfeb7 100644 |
| --- a/Source/core/animation/DocumentTimeline.h |
| +++ b/Source/core/animation/DocumentTimeline.h |
| @@ -97,8 +97,10 @@ private: |
| double m_zeroTime; |
| Document* m_document; |
| // AnimationPlayers which will be updated on the next frame |
| - // i.e. current, in effect, or had timing changed |
| - HashSet<RefPtr<AnimationPlayer> > m_playersNeedingUpdate; |
| + // i.e. current, in effect, or had timing changed. This needs |
| + // to be a collection that can be updated while we iterate |
| + // over it (this happens during pauseAnimationsForTesting). |
|
Timothy Loh
2014/03/31 23:33:22
So the problem is that we're trying to modify the
|
| + ListHashSet<RefPtr<AnimationPlayer> > m_playersNeedingUpdate; |
| HashSet<AnimationPlayer*> m_players; |
| bool m_hasOutdatedAnimationPlayer; |