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: Source/core/animation/DocumentTimeline.h

Issue 196223014: Fix running of CSS Animations in SVG-in-<img>/background-image/etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void playerDestroyed(Player* player) 71 void playerDestroyed(Player* player)
72 { 72 {
73 ASSERT(m_players.contains(player)); 73 ASSERT(m_players.contains(player));
74 m_players.remove(player); 74 m_players.remove(player);
75 } 75 }
76 76
77 // Called from setReadyState() in Document.cpp to set m_zeroTime to 77 // Called from setReadyState() in Document.cpp to set m_zeroTime to
78 // performance.timing.domInteractive 78 // performance.timing.domInteractive
79 void setZeroTime(double); 79 void setZeroTime(double);
80 bool hasStarted() const { return !isNull(m_zeroTime); } 80 bool hasStarted() const { return !isNull(m_zeroTime); }
81 bool hasPendingUpdates() const { return !m_playersNeedingUpdate.isEmpty(); }
81 double zeroTime() const { return m_zeroTime; } 82 double zeroTime() const { return m_zeroTime; }
82 double currentTime(); 83 double currentTime();
83 void pauseAnimationsForTesting(double); 84 void pauseAnimationsForTesting(double);
84 size_t numberOfActiveAnimationsForTesting() const; 85 size_t numberOfActiveAnimationsForTesting() const;
85 86
86 void setOutdatedPlayer(Player*); 87 void setOutdatedPlayer(Player*);
87 bool hasOutdatedPlayer() const { return m_hasOutdatedPlayer; } 88 bool hasOutdatedPlayer() const { return m_hasOutdatedPlayer; }
88 89
89 void detachFromDocument(); 90 void detachFromDocument();
90 91
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 Timer<DocumentTimelineTiming> m_timer; 128 Timer<DocumentTimelineTiming> m_timer;
128 129
129 }; 130 };
130 131
131 friend class AnimationDocumentTimelineTest; 132 friend class AnimationDocumentTimelineTest;
132 }; 133 };
133 134
134 } // namespace 135 } // namespace
135 136
136 #endif 137 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/as-image/svg-image-with-css-animation-expected.html ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698