| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return std::make_pair(event->target(), event->type().impl()); | 44 return std::make_pair(event->target(), event->type().impl()); |
| 45 } | 45 } |
| 46 | 46 |
| 47 ScriptedAnimationController::ScriptedAnimationController(Document* document) | 47 ScriptedAnimationController::ScriptedAnimationController(Document* document) |
| 48 : m_document(document) | 48 : m_document(document) |
| 49 , m_nextCallbackId(0) | 49 , m_nextCallbackId(0) |
| 50 , m_suspendCount(0) | 50 , m_suspendCount(0) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 ScriptedAnimationController::~ScriptedAnimationController() | 54 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptedAnimationController); |
| 55 { | |
| 56 } | |
| 57 | 55 |
| 58 void ScriptedAnimationController::trace(Visitor* visitor) | 56 void ScriptedAnimationController::trace(Visitor* visitor) |
| 59 { | 57 { |
| 60 #if ENABLE(OILPAN) | 58 #if ENABLE(OILPAN) |
| 61 visitor->trace(m_callbacks); | 59 visitor->trace(m_callbacks); |
| 62 visitor->trace(m_callbacksToInvoke); | 60 visitor->trace(m_callbacksToInvoke); |
| 63 visitor->trace(m_document); | 61 visitor->trace(m_document); |
| 64 visitor->trace(m_eventQueue); | 62 visitor->trace(m_eventQueue); |
| 65 visitor->trace(m_mediaQueryListListeners); | 63 visitor->trace(m_mediaQueryListListeners); |
| 66 visitor->trace(m_perFrameEvents); | 64 visitor->trace(m_perFrameEvents); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 return; | 237 return; |
| 240 | 238 |
| 241 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) | 239 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) |
| 242 return; | 240 return; |
| 243 | 241 |
| 244 if (FrameView* frameView = m_document->view()) | 242 if (FrameView* frameView = m_document->view()) |
| 245 frameView->scheduleAnimation(); | 243 frameView->scheduleAnimation(); |
| 246 } | 244 } |
| 247 | 245 |
| 248 } | 246 } |
| OLD | NEW |