Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Side by Side Diff: sky/engine/core/dom/ScriptedAnimationController.cpp

Issue 880013003: spinning-square.sky doesn't spin (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix animations too Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/animation/AnimationTimeline.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sky/engine/core/animation/AnimationTimeline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698