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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 visitor->trace(m_perFrameEvents); 59 visitor->trace(m_perFrameEvents);
60 } 60 }
61 61
62 void ScriptedAnimationController::suspend() 62 void ScriptedAnimationController::suspend()
63 { 63 {
64 ++m_suspendCount; 64 ++m_suspendCount;
65 } 65 }
66 66
67 void ScriptedAnimationController::resume() 67 void ScriptedAnimationController::resume()
68 { 68 {
69 // It would be nice to put an ASSERT(m_suspendCount > 0) here, but in WK1 re sume() can be called 69 // It would be nice to put an DCHECK(m_suspendCount > 0) here, but in WK1 re sume() can be called
70 // even when suspend hasn't (if a tab was created in the background). 70 // even when suspend hasn't (if a tab was created in the background).
71 if (m_suspendCount > 0) 71 if (m_suspendCount > 0)
72 --m_suspendCount; 72 --m_suspendCount;
73 scheduleAnimationIfNeeded(); 73 scheduleAnimationIfNeeded();
74 } 74 }
75 75
76 void ScriptedAnimationController::dispatchEventsAndCallbacksForPrinting() 76 void ScriptedAnimationController::dispatchEventsAndCallbacksForPrinting()
77 { 77 {
78 dispatchEvents(EventNames::MediaQueryListEvent); 78 dispatchEvents(EventNames::MediaQueryListEvent);
79 callMediaQueryListListeners(); 79 callMediaQueryListListeners();
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return; 195 return;
196 196
197 if (!m_document) 197 if (!m_document)
198 return; 198 return;
199 199
200 if (FrameView* frameView = m_document->view()) 200 if (FrameView* frameView = m_document->view())
201 frameView->scheduleAnimation(); 201 frameView->scheduleAnimation();
202 } 202 }
203 203
204 } // namespace blink 204 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698