| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |