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

Unified Diff: Source/core/animation/DocumentTimeline.h

Issue 219413002: Hash iterators: Check for concurrent modification and fix 1 place where it happened (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR feedback Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | Source/core/animation/DocumentTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698