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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 , m_suspendCount(0) | 49 , m_suspendCount(0) |
50 { | 50 { |
51 } | 51 } |
52 | 52 |
53 ScriptedAnimationController::~ScriptedAnimationController() | 53 ScriptedAnimationController::~ScriptedAnimationController() |
54 { | 54 { |
55 } | 55 } |
56 | 56 |
57 void ScriptedAnimationController::trace(Visitor* visitor) | 57 void ScriptedAnimationController::trace(Visitor* visitor) |
58 { | 58 { |
| 59 #if ENABLE(OILPAN) |
59 visitor->trace(m_document); | 60 visitor->trace(m_document); |
60 visitor->trace(m_eventQueue); | 61 visitor->trace(m_eventQueue); |
61 visitor->trace(m_mediaQueryListListeners); | 62 visitor->trace(m_mediaQueryListListeners); |
62 #if ENABLE(OILPAN) | |
63 visitor->trace(m_perFrameEvents); | 63 visitor->trace(m_perFrameEvents); |
64 #endif | 64 #endif |
65 } | 65 } |
66 | 66 |
67 void ScriptedAnimationController::suspend() | 67 void ScriptedAnimationController::suspend() |
68 { | 68 { |
69 ++m_suspendCount; | 69 ++m_suspendCount; |
70 } | 70 } |
71 | 71 |
72 void ScriptedAnimationController::resume() | 72 void ScriptedAnimationController::resume() |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 return; | 230 return; |
231 | 231 |
232 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) | 232 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) |
233 return; | 233 return; |
234 | 234 |
235 if (FrameView* frameView = m_document->view()) | 235 if (FrameView* frameView = m_document->view()) |
236 frameView->scheduleAnimation(); | 236 frameView->scheduleAnimation(); |
237 } | 237 } |
238 | 238 |
239 } | 239 } |
OLD | NEW |