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

Side by Side Diff: Source/WebKit/chromium/src/WebKit.cpp

Issue 14660019: Run Mutation Observer and Custom Element callbacks consistently at microtask checkpoint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 7 years, 6 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 | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | 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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "WebKit.h" 32 #include "WebKit.h"
33 33
34 #include "IDBFactoryBackendProxy.h" 34 #include "IDBFactoryBackendProxy.h"
35 #include "RuntimeEnabledFeatures.h" 35 #include "RuntimeEnabledFeatures.h"
36 #include "WebMediaPlayerClientImpl.h" 36 #include "WebMediaPlayerClientImpl.h"
37 #include "WebWorkerClientImpl.h" 37 #include "WebWorkerClientImpl.h"
38 #include "bindings/v8/V8Binding.h" 38 #include "bindings/v8/V8Binding.h"
39 #include "bindings/v8/V8RecursionScope.h" 39 #include "bindings/v8/V8RecursionScope.h"
40 #include "core/Init.h" 40 #include "core/Init.h"
41 #include "core/dom/CustomElementRegistry.h" 41 #include "core/dom/Microtask.h"
42 #include "core/dom/MutationObserver.h"
43 #include "core/page/Frame.h" 42 #include "core/page/Frame.h"
44 #include "core/page/Page.h" 43 #include "core/page/Page.h"
45 #include "core/page/Settings.h" 44 #include "core/page/Settings.h"
46 #include "core/platform/LayoutTestSupport.h" 45 #include "core/platform/LayoutTestSupport.h"
47 #include "core/platform/Logging.h" 46 #include "core/platform/Logging.h"
48 #include "core/platform/graphics/MediaPlayer.h" 47 #include "core/platform/graphics/MediaPlayer.h"
49 #include "core/platform/graphics/chromium/ImageDecodingStore.h" 48 #include "core/platform/graphics/chromium/ImageDecodingStore.h"
50 #include "core/workers/WorkerContextProxy.h" 49 #include "core/workers/WorkerContextProxy.h"
51 #include "wtf/Assertions.h" 50 #include "wtf/Assertions.h"
52 #include "wtf/CryptographicallyRandomNumber.h" 51 #include "wtf/CryptographicallyRandomNumber.h"
(...skipping 10 matching lines...) Expand all
63 62
64 namespace WebKit { 63 namespace WebKit {
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() { } 69 virtual void willProcessTask() { }
71 virtual void didProcessTask() 70 virtual void didProcessTask()
72 { 71 {
73 WebCore::CustomElementRegistry::deliverAllLifecycleCallbacks(); 72 WebCore::Microtask::performCheckpoint();
74 WebCore::MutationObserver::deliverAllMutations();
75 } 73 }
76 }; 74 };
77 75
78 } // namespace 76 } // namespace
79 77
80 static WebThread::TaskObserver* s_endOfTaskRunner = 0; 78 static WebThread::TaskObserver* s_endOfTaskRunner = 0;
81 79
82 // Make sure we are not re-initialized in the same address space. 80 // Make sure we are not re-initialized in the same address space.
83 // Doing so may cause hard to reproduce crashes. 81 // Doing so may cause hard to reproduce crashes.
84 static bool s_webKitInitialized = false; 82 static bool s_webKitInitialized = false;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 UNUSED_PARAM(name); 206 UNUSED_PARAM(name);
209 #endif // !LOG_DISABLED 207 #endif // !LOG_DISABLED
210 } 208 }
211 209
212 void resetPluginCache(bool reloadPages) 210 void resetPluginCache(bool reloadPages)
213 { 211 {
214 WebCore::Page::refreshPlugins(reloadPages); 212 WebCore::Page::refreshPlugins(reloadPages);
215 } 213 }
216 214
217 } // namespace WebKit 215 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698