| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 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 "WebMediaPlayerClientImpl.h" | 35 #include "WebMediaPlayerClientImpl.h" |
| 36 #include "WebWorkerClientImpl.h" | 36 #include "WebWorkerClientImpl.h" |
| 37 #include "bindings/v8/V8Binding.h" | 37 #include "bindings/v8/V8Binding.h" |
| 38 #include "bindings/v8/V8RecursionScope.h" | 38 #include "bindings/v8/V8RecursionScope.h" |
| 39 #include "core/dom/CustomElementRegistry.h" | 39 #include "core/dom/Microtask.h" |
| 40 #include "core/dom/MutationObserver.h" | |
| 41 #include "core/page/Frame.h" | 40 #include "core/page/Frame.h" |
| 42 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 43 #include "RuntimeEnabledFeatures.h" | 42 #include "RuntimeEnabledFeatures.h" |
| 44 #include "core/page/Settings.h" | 43 #include "core/page/Settings.h" |
| 45 #include "core/platform/EventTracer.h" | 44 #include "core/platform/EventTracer.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/chromium/ImageDecodingStore.h" | 47 #include "core/platform/graphics/chromium/ImageDecodingStore.h" |
| 49 #include "core/platform/graphics/chromium/MediaPlayerPrivateChromium.h" | 48 #include "core/platform/graphics/chromium/MediaPlayerPrivateChromium.h" |
| 50 #include "core/platform/text/TextEncoding.h" | 49 #include "core/platform/text/TextEncoding.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 | 60 |
| 62 namespace WebKit { | 61 namespace WebKit { |
| 63 | 62 |
| 64 namespace { | 63 namespace { |
| 65 | 64 |
| 66 class EndOfTaskRunner : public WebThread::TaskObserver { | 65 class EndOfTaskRunner : public WebThread::TaskObserver { |
| 67 public: | 66 public: |
| 68 virtual void willProcessTask() { } | 67 virtual void willProcessTask() { } |
| 69 virtual void didProcessTask() | 68 virtual void didProcessTask() |
| 70 { | 69 { |
| 71 WebCore::CustomElementRegistry::deliverAllLifecycleCallbacks(); | 70 WebCore::Microtask::performCheckpoint(); |
| 72 WebCore::MutationObserver::deliverAllMutations(); | |
| 73 } | 71 } |
| 74 }; | 72 }; |
| 75 | 73 |
| 76 } // namespace | 74 } // namespace |
| 77 | 75 |
| 78 static WebThread::TaskObserver* s_endOfTaskRunner = 0; | 76 static WebThread::TaskObserver* s_endOfTaskRunner = 0; |
| 79 | 77 |
| 80 // Make sure we are not re-initialized in the same address space. | 78 // Make sure we are not re-initialized in the same address space. |
| 81 // Doing so may cause hard to reproduce crashes. | 79 // Doing so may cause hard to reproduce crashes. |
| 82 static bool s_webKitInitialized = false; | 80 static bool s_webKitInitialized = false; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 UNUSED_PARAM(name); | 194 UNUSED_PARAM(name); |
| 197 #endif // !LOG_DISABLED | 195 #endif // !LOG_DISABLED |
| 198 } | 196 } |
| 199 | 197 |
| 200 void resetPluginCache(bool reloadPages) | 198 void resetPluginCache(bool reloadPages) |
| 201 { | 199 { |
| 202 WebCore::Page::refreshPlugins(reloadPages); | 200 WebCore::Page::refreshPlugins(reloadPages); |
| 203 } | 201 } |
| 204 | 202 |
| 205 } // namespace WebKit | 203 } // namespace WebKit |
| OLD | NEW |