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

Side by Side Diff: Source/web/WebKit.cpp

Issue 275863002: Revert of Web Animations: Timeline should not advance during task execution (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/web/WebKit.h" 32 #include "public/web/WebKit.h"
33 33
34 #include "RuntimeEnabledFeatures.h" 34 #include "RuntimeEnabledFeatures.h"
35 #include "bindings/v8/V8Binding.h" 35 #include "bindings/v8/V8Binding.h"
36 #include "bindings/v8/V8Initializer.h" 36 #include "bindings/v8/V8Initializer.h"
37 #include "core/Init.h" 37 #include "core/Init.h"
38 #include "core/animation/AnimationClock.h"
39 #include "core/dom/Microtask.h" 38 #include "core/dom/Microtask.h"
40 #include "core/frame/Settings.h" 39 #include "core/frame/Settings.h"
41 #include "core/page/Page.h" 40 #include "core/page/Page.h"
42 #include "core/workers/WorkerGlobalScopeProxy.h" 41 #include "core/workers/WorkerGlobalScopeProxy.h"
43 #include "gin/public/v8_platform.h" 42 #include "gin/public/v8_platform.h"
44 #include "platform/LayoutTestSupport.h" 43 #include "platform/LayoutTestSupport.h"
45 #include "platform/Logging.h" 44 #include "platform/Logging.h"
46 #include "platform/graphics/ImageDecodingStore.h" 45 #include "platform/graphics/ImageDecodingStore.h"
47 #include "platform/graphics/media/MediaPlayer.h" 46 #include "platform/graphics/media/MediaPlayer.h"
48 #include "platform/heap/Heap.h" 47 #include "platform/heap/Heap.h"
(...skipping 11 matching lines...) Expand all
60 #include "wtf/text/AtomicString.h" 59 #include "wtf/text/AtomicString.h"
61 #include "wtf/text/TextEncoding.h" 60 #include "wtf/text/TextEncoding.h"
62 #include <v8.h> 61 #include <v8.h>
63 62
64 namespace blink { 63 namespace blink {
65 64
66 namespace { 65 namespace {
67 66
68 class EndOfTaskRunner : public WebThread::TaskObserver { 67 class EndOfTaskRunner : public WebThread::TaskObserver {
69 public: 68 public:
70 virtual void willProcessTask() OVERRIDE 69 virtual void willProcessTask() { }
71 { 70 virtual void didProcessTask()
72 WebCore::AnimationClock::notifyTaskStart();
73 }
74 virtual void didProcessTask() OVERRIDE
75 { 71 {
76 WebCore::Microtask::performCheckpoint(); 72 WebCore::Microtask::performCheckpoint();
77 } 73 }
78 }; 74 };
79 75
80 } // namespace 76 } // namespace
81 77
82 static WebThread::TaskObserver* s_endOfTaskRunner = 0; 78 static WebThread::TaskObserver* s_endOfTaskRunner = 0;
83 static WebThread::TaskObserver* s_pendingGCRunner = 0; 79 static WebThread::TaskObserver* s_pendingGCRunner = 0;
84 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; 80 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 channel->state = WTFLogChannelOn; 260 channel->state = WTFLogChannelOn;
265 #endif // !LOG_DISABLED 261 #endif // !LOG_DISABLED
266 } 262 }
267 263
268 void resetPluginCache(bool reloadPages) 264 void resetPluginCache(bool reloadPages)
269 { 265 {
270 WebCore::Page::refreshPlugins(reloadPages); 266 WebCore::Page::refreshPlugins(reloadPages);
271 } 267 }
272 268
273 } // namespace blink 269 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698