| 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 15 matching lines...) Expand all Loading... |
| 26 #include "sky/engine/config.h" | 26 #include "sky/engine/config.h" |
| 27 #include "sky/engine/core/dom/ScriptedAnimationController.h" | 27 #include "sky/engine/core/dom/ScriptedAnimationController.h" |
| 28 | 28 |
| 29 #include "sky/engine/core/css/MediaQueryListListener.h" | 29 #include "sky/engine/core/css/MediaQueryListListener.h" |
| 30 #include "sky/engine/core/dom/Document.h" | 30 #include "sky/engine/core/dom/Document.h" |
| 31 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h" | 31 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h" |
| 32 #include "sky/engine/core/events/Event.h" | 32 #include "sky/engine/core/events/Event.h" |
| 33 #include "sky/engine/core/frame/FrameView.h" | 33 #include "sky/engine/core/frame/FrameView.h" |
| 34 #include "sky/engine/core/frame/LocalDOMWindow.h" | 34 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 35 #include "sky/engine/core/inspector/InspectorTraceEvents.h" | 35 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 36 #include "sky/engine/core/page/Page.h" |
| 36 #include "sky/engine/platform/Logging.h" | 37 #include "sky/engine/platform/Logging.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 std::pair<EventTarget*, StringImpl*> eventTargetKey(const Event* event) | 41 std::pair<EventTarget*, StringImpl*> eventTargetKey(const Event* event) |
| 41 { | 42 { |
| 42 return std::make_pair(event->target(), event->type().impl()); | 43 return std::make_pair(event->target(), event->type().impl()); |
| 43 } | 44 } |
| 44 | 45 |
| 45 ScriptedAnimationController::ScriptedAnimationController(Document* document) | 46 ScriptedAnimationController::ScriptedAnimationController(Document* document) |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 if (!m_document) | 214 if (!m_document) |
| 214 return; | 215 return; |
| 215 | 216 |
| 216 if (m_suspendCount) | 217 if (m_suspendCount) |
| 217 return; | 218 return; |
| 218 | 219 |
| 219 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) | 220 if (!m_callbacks.size() && !m_eventQueue.size() && !m_mediaQueryListListener
s.size()) |
| 220 return; | 221 return; |
| 221 | 222 |
| 222 // TODO(esprehn): This causes a full raster on every raf even if nothing cha
nged. | 223 // TODO(esprehn): This causes a full raster on every raf even if nothing cha
nged. |
| 223 m_document->scheduleVisualUpdate(); | 224 m_document->page()->scheduleVisualUpdate(); |
| 224 } | 225 } |
| 225 | 226 |
| 226 } | 227 } |
| OLD | NEW |