| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/dom/ScriptedAnimationController.h" | 26 #include "core/dom/ScriptedAnimationController.h" |
| 27 | 27 |
| 28 #include "core/css/MediaQueryListListener.h" | 28 #include "core/css/MediaQueryListListener.h" |
| 29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
| 30 #include "core/dom/FrameRequestCallback.h" | 30 #include "core/dom/FrameRequestCallback.h" |
| 31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
| 32 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
| 33 #include "core/frame/LocalDOMWindow.h" | 33 #include "core/frame/LocalDOMWindow.h" |
| 34 #include "core/inspector/InspectorInstrumentation.h" | |
| 35 #include "core/inspector/InspectorTraceEvents.h" | 34 #include "core/inspector/InspectorTraceEvents.h" |
| 36 #include "core/loader/DocumentLoader.h" | 35 #include "core/loader/DocumentLoader.h" |
| 36 #include "core/probe/CoreProbes.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 std::pair<EventTarget*, StringImpl*> eventTargetKey(const Event* event) { | 40 std::pair<EventTarget*, StringImpl*> eventTargetKey(const Event* event) { |
| 41 return std::make_pair(event->target(), event->type().impl()); | 41 return std::make_pair(event->target(), event->type().impl()); |
| 42 } | 42 } |
| 43 | 43 |
| 44 ScriptedAnimationController::ScriptedAnimationController(Document* document) | 44 ScriptedAnimationController::ScriptedAnimationController(Document* document) |
| 45 : m_document(document), m_callbackCollection(document), m_suspendCount(0) {} | 45 : m_document(document), m_callbackCollection(document), m_suspendCount(0) {} |
| 46 | 46 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 return; | 199 return; |
| 200 | 200 |
| 201 if (!m_document) | 201 if (!m_document) |
| 202 return; | 202 return; |
| 203 | 203 |
| 204 if (FrameView* frameView = m_document->view()) | 204 if (FrameView* frameView = m_document->view()) |
| 205 frameView->scheduleAnimation(); | 205 frameView->scheduleAnimation(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace blink | 208 } // namespace blink |
| OLD | NEW |