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

Side by Side Diff: third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp

Issue 2736773004: Replace RELEASE_ASSERT with CHECK in core/svg/ (Closed)
Patch Set: Rebase on top of latest from master Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 bool SMILTimeContainer::isStarted() const { 156 bool SMILTimeContainer::isStarted() const {
157 return m_started; 157 return m_started;
158 } 158 }
159 159
160 bool SMILTimeContainer::isTimelineRunning() const { 160 bool SMILTimeContainer::isTimelineRunning() const {
161 return isStarted() && !isPaused(); 161 return isStarted() && !isPaused();
162 } 162 }
163 163
164 void SMILTimeContainer::start() { 164 void SMILTimeContainer::start() {
165 RELEASE_ASSERT(!isStarted()); 165 CHECK(!isStarted());
166 166
167 if (!document().isActive()) 167 if (!document().isActive())
168 return; 168 return;
169 169
170 if (!handleAnimationPolicy(RestartOnceTimerIfNotPaused)) 170 if (!handleAnimationPolicy(RestartOnceTimerIfNotPaused))
171 return; 171 return;
172 172
173 // Sample the document timeline to get a time reference for the "presentation 173 // Sample the document timeline to get a time reference for the "presentation
174 // time". 174 // time".
175 synchronizeToDocumentTimeline(); 175 synchronizeToDocumentTimeline();
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 void SMILTimeContainer::advanceFrameForTesting() { 529 void SMILTimeContainer::advanceFrameForTesting() {
530 setElapsed(elapsed() + initialFrameDelay); 530 setElapsed(elapsed() + initialFrameDelay);
531 } 531 }
532 532
533 DEFINE_TRACE(SMILTimeContainer) { 533 DEFINE_TRACE(SMILTimeContainer) {
534 visitor->trace(m_scheduledAnimations); 534 visitor->trace(m_scheduledAnimations);
535 visitor->trace(m_ownerSVGElement); 535 visitor->trace(m_ownerSVGElement);
536 } 536 }
537 537
538 } // namespace blink 538 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698