Move RunLoop from WebCore to WTF
authorparoga@webkit.org <paroga@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Nov 2013 20:59:28 +0000 (20:59 +0000)
committerparoga@webkit.org <paroga@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 9 Nov 2013 20:59:28 +0000 (20:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=116606

Reviewed by Anders Carlsson.

Source/WebCore:

* CMakeLists.txt:
* GNUmakefile.list.am:
* PlatformBlackBerry.cmake:
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* PlatformWin.cmake:
* WebCore.exp.in:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.xcodeproj/project.pbxproj:
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:

Source/WebKit/mac:

* Carbon/CarbonWindowAdapter.mm:
(+[CarbonWindowAdapter initialize]):
* History/WebBackForwardList.mm:
(+[WebBackForwardList initialize]):
* History/WebHistoryItem.mm:
(+[WebHistoryItem initialize]):
* Misc/WebCache.mm:
(+[WebCache initialize]):
* Misc/WebElementDictionary.mm:
(+[WebElementDictionary initialize]):
* Misc/WebIconDatabase.mm:
(+[WebIconDatabase initialize]):
* Plugins/Hosted/WebHostedNetscapePluginView.mm:
(+[WebHostedNetscapePluginView initialize]):
* Plugins/WebBaseNetscapePluginView.mm:
* Plugins/WebBasePluginPackage.mm:
* Plugins/WebNetscapePluginView.mm:
(+[WebNetscapePluginView initialize]):
* WebCoreSupport/WebEditorClient.mm:
(+[WebUndoStep initialize]):
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebArchive.mm:
(+[WebArchivePrivate initialize]):
* WebView/WebDataSource.mm:
(+[WebDataSource initialize]):
* WebView/WebHTMLView.mm:
(+[WebHTMLViewPrivate initialize]):
(+[WebHTMLView initialize]):
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
* WebView/WebResource.mm:
(+[WebResourcePrivate initialize]):
* WebView/WebTextIterator.mm:
(+[WebTextIteratorPrivate initialize]):
* WebView/WebView.mm:
(+[WebView initialize]):
* WebView/WebViewData.mm:
(+[WebViewPrivate initialize]):

Source/WebKit2:

* DatabaseProcess/DatabaseProcess.cpp:
* DatabaseProcess/DatabaseToWebProcessConnection.cpp:
* NetworkProcess/NetworkConnectionToWebProcess.cpp:
* NetworkProcess/NetworkProcess.cpp:
* NetworkProcess/NetworkProcess.h:
* NetworkProcess/NetworkResourceLoader.h:
* NetworkProcess/mac/DiskCacheMonitor.h:
* NetworkProcess/unix/NetworkProcessMainUnix.cpp:
* Platform/CoreIPC/Connection.cpp:
* Platform/CoreIPC/Connection.h:
* Platform/CoreIPC/mac/ConnectionMac.cpp:
* PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
* PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
* PluginProcess/PluginControllerProxy.h:
* PluginProcess/PluginProcess.cpp:
* PluginProcess/PluginProcess.h:
* PluginProcess/WebProcessConnection.cpp:
* PluginProcess/unix/PluginProcessMainUnix.cpp:
* Shared/ChildProcess.cpp:
* Shared/ChildProcess.h:
* Shared/ChildProcessProxy.cpp:
* Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
* Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
* Shared/Plugins/NPObjectProxy.cpp:
* Shared/WebKit2Initialize.cpp:
(WebKit::InitializeWebKit2):
* UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
* UIProcess/API/mac/FindIndicatorWindow.h:
* UIProcess/API/mac/WKPrintingView.mm:
* UIProcess/API/mac/WKView.mm:
* UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
* UIProcess/DrawingAreaProxyImpl.h:
* UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
* UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
* UIProcess/Network/NetworkProcessProxy.cpp:
* UIProcess/Plugins/PluginProcessProxy.cpp:
* UIProcess/ResponsivenessTimer.cpp:
* UIProcess/ResponsivenessTimer.h:
* UIProcess/VisitedLinkProvider.h:
* UIProcess/WebContext.cpp:
* UIProcess/WebProcessProxy.cpp:
* WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
* WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
* WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
* WebProcess/Network/WebResourceLoadScheduler.h:
* WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
* WebProcess/Plugins/Netscape/NetscapePlugin.h:
* WebProcess/Plugins/Netscape/NetscapePluginStream.h:
* WebProcess/Plugins/PluginView.h:
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
* WebProcess/WebPage/DrawingAreaImpl.h:
* WebProcess/WebPage/EventDispatcher.cpp:
* WebProcess/WebPage/PageOverlay.h:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebProcess.cpp:
* WebProcess/efl/WebProcessMainEfl.cpp:
* WebProcess/gtk/WebProcessMainGtk.cpp:

Source/WTF:

With this change RunLoop can be used in JavaScriptCore too.

* GNUmakefile.list.am:
* WTF.vcxproj/WTF.vcxproj:
* WTF.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:
* wtf/PlatformBlackBerry.cmake:
* wtf/PlatformEfl.cmake:
* wtf/PlatformGTK.cmake:
* wtf/PlatformWin.cmake:
* wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
(WTF::RunLoop::Holder::Holder):
(WTF::RunLoop::Holder::runLoop):
(WTF::RunLoop::initializeMainRunLoop):
(WTF::RunLoop::current):
(WTF::RunLoop::main):
(WTF::RunLoop::isMain):
(WTF::RunLoop::performWork):
(WTF::RunLoop::dispatch):
* wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
(WTF::RunLoop::TimerBase::startRepeating):
(WTF::RunLoop::TimerBase::startOneShot):
(WTF::RunLoop::TimerBase::isRepeating):
(WTF::RunLoop::Timer::Timer):
(WTF::RunLoop::Timer::fired):
* wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::~RunLoop):
(WTF::RunLoop::wakeUp):
* wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
(WTF::RunLoop::performWork):
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::~RunLoop):
(WTF::RunLoop::runForDuration):
(WTF::RunLoop::wakeUp):
(WTF::RunLoop::run):
(WTF::RunLoop::stop):
(WTF::RunLoop::TimerBase::timerFired):
(WTF::RunLoop::TimerBase::TimerBase):
(WTF::RunLoop::TimerBase::~TimerBase):
(WTF::RunLoop::TimerBase::start):
(WTF::RunLoop::TimerBase::stop):
(WTF::RunLoop::TimerBase::isActive):
* wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::~RunLoop):
(WTF::RunLoop::run):
(WTF::RunLoop::stop):
(WTF::RunLoop::wakeUpEvent):
(WTF::RunLoop::wakeUp):
(WTF::RunLoop::TimerBase::TimerBase):
(WTF::RunLoop::TimerBase::~TimerBase):
(WTF::RunLoop::TimerBase::timerFired):
(WTF::RunLoop::TimerBase::start):
(WTF::RunLoop::TimerBase::stop):
(WTF::RunLoop::TimerBase::isActive):
* wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::~RunLoop):
(WTF::RunLoop::run):
(WTF::RunLoop::innermostLoop):
(WTF::RunLoop::pushNestedMainLoop):
(WTF::RunLoop::popNestedMainLoop):
(WTF::RunLoop::stop):
(WTF::RunLoop::queueWork):
(WTF::RunLoop::wakeUp):
(WTF::RunLoop::TimerBase::TimerBase):
(WTF::RunLoop::TimerBase::~TimerBase):
(WTF::RunLoop::TimerBase::clearTimerSource):
(WTF::RunLoop::TimerBase::timerFiredCallback):
(WTF::RunLoop::TimerBase::start):
(WTF::RunLoop::TimerBase::stop):
(WTF::RunLoop::TimerBase::isActive):
* wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
(WTF::RunLoop::RunLoopWndProc):
(WTF::RunLoop::wndProc):
(WTF::RunLoop::run):
(WTF::RunLoop::stop):
(WTF::RunLoop::registerRunLoopMessageWindowClass):
(WTF::RunLoop::RunLoop):
(WTF::RunLoop::~RunLoop):
(WTF::RunLoop::wakeUp):
(WTF::RunLoop::TimerBase::timerFired):
(WTF::generateTimerID):
(WTF::RunLoop::TimerBase::TimerBase):
(WTF::RunLoop::TimerBase::~TimerBase):
(WTF::RunLoop::TimerBase::start):
(WTF::RunLoop::TimerBase::stop):
(WTF::RunLoop::TimerBase::isActive):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159001 268f45cc-cd09-0410-ab3c-d52691b4dbfc

108 files changed:
Source/WTF/ChangeLog
Source/WTF/GNUmakefile.list.am
Source/WTF/WTF.vcxproj/WTF.vcxproj
Source/WTF/WTF.xcodeproj/project.pbxproj
Source/WTF/wtf/CMakeLists.txt
Source/WTF/wtf/PlatformBlackBerry.cmake
Source/WTF/wtf/PlatformEfl.cmake
Source/WTF/wtf/PlatformGTK.cmake
Source/WTF/wtf/PlatformWin.cmake
Source/WTF/wtf/RunLoop.cpp [moved from Source/WebCore/platform/RunLoop.cpp with 98% similarity]
Source/WTF/wtf/RunLoop.h [moved from Source/WebCore/platform/RunLoop.h with 85% similarity]
Source/WTF/wtf/blackberry/RunLoopBlackBerry.cpp [moved from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp with 97% similarity]
Source/WTF/wtf/cf/RunLoopCF.cpp [moved from Source/WebCore/platform/cf/RunLoopCF.cpp with 98% similarity]
Source/WTF/wtf/efl/RunLoopEfl.cpp [moved from Source/WebCore/platform/efl/RunLoopEfl.cpp with 97% similarity]
Source/WTF/wtf/gtk/RunLoopGtk.cpp [moved from Source/WebCore/platform/gtk/RunLoopGtk.cpp with 98% similarity]
Source/WTF/wtf/win/RunLoopWin.cpp [moved from Source/WebCore/platform/win/RunLoopWin.cpp with 96% similarity]
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/PlatformBlackBerry.cmake
Source/WebCore/PlatformEfl.cmake
Source/WebCore/PlatformGTK.cmake
Source/WebCore/PlatformWin.cmake
Source/WebCore/WebCore.exp.in
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h
Source/WebKit/mac/Carbon/CarbonWindowAdapter.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/History/WebBackForwardList.mm
Source/WebKit/mac/History/WebHistoryItem.mm
Source/WebKit/mac/Misc/WebCache.mm
Source/WebKit/mac/Misc/WebElementDictionary.mm
Source/WebKit/mac/Misc/WebIconDatabase.mm
Source/WebKit/mac/Plugins/Hosted/WebHostedNetscapePluginView.mm
Source/WebKit/mac/Plugins/WebBaseNetscapePluginView.mm
Source/WebKit/mac/Plugins/WebBasePluginPackage.mm
Source/WebKit/mac/Plugins/WebNetscapePluginView.mm
Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
Source/WebKit/mac/WebView/WebArchive.mm
Source/WebKit/mac/WebView/WebDataSource.mm
Source/WebKit/mac/WebView/WebHTMLView.mm
Source/WebKit/mac/WebView/WebPreferences.mm
Source/WebKit/mac/WebView/WebResource.mm
Source/WebKit/mac/WebView/WebTextIterator.mm
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit/mac/WebView/WebViewData.mm
Source/WebKit2/ChangeLog
Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp
Source/WebKit2/DatabaseProcess/DatabaseToWebProcessConnection.cpp
Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp
Source/WebKit2/NetworkProcess/NetworkProcess.cpp
Source/WebKit2/NetworkProcess/NetworkProcess.h
Source/WebKit2/NetworkProcess/NetworkResourceLoader.h
Source/WebKit2/NetworkProcess/mac/DiskCacheMonitor.h
Source/WebKit2/NetworkProcess/unix/NetworkProcessMainUnix.cpp
Source/WebKit2/Platform/CoreIPC/Connection.cpp
Source/WebKit2/Platform/CoreIPC/Connection.h
Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp
Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm
Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
Source/WebKit2/PluginProcess/PluginControllerProxy.h
Source/WebKit2/PluginProcess/PluginProcess.cpp
Source/WebKit2/PluginProcess/PluginProcess.h
Source/WebKit2/PluginProcess/WebProcessConnection.cpp
Source/WebKit2/PluginProcess/unix/PluginProcessMainUnix.cpp
Source/WebKit2/Shared/ChildProcess.cpp
Source/WebKit2/Shared/ChildProcess.h
Source/WebKit2/Shared/ChildProcessProxy.cpp
Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h
Source/WebKit2/Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm
Source/WebKit2/Shared/Plugins/NPObjectProxy.cpp
Source/WebKit2/Shared/WebKit2Initialize.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitFaviconDatabase.cpp
Source/WebKit2/UIProcess/API/mac/FindIndicatorWindow.h
Source/WebKit2/UIProcess/API/mac/WKPrintingView.mm
Source/WebKit2/UIProcess/API/mac/WKView.mm
Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h
Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
Source/WebKit2/UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp
Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm
Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp
Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp
Source/WebKit2/UIProcess/ResponsivenessTimer.cpp
Source/WebKit2/UIProcess/ResponsivenessTimer.h
Source/WebKit2/UIProcess/VisitedLinkProvider.h
Source/WebKit2/UIProcess/WebContext.cpp
Source/WebKit2/UIProcess/WebProcessProxy.cpp
Source/WebKit2/WebProcess/Databases/WebToDatabaseProcessConnection.cpp
Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm
Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm
Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.h
Source/WebKit2/WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h
Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.h
Source/WebKit2/WebProcess/Plugins/PluginView.h
Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.h
Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp
Source/WebKit2/WebProcess/WebPage/PageOverlay.h
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/WebProcess/WebProcess.cpp
Source/WebKit2/WebProcess/efl/WebProcessMainEfl.cpp
Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp

index d69a7d86d114c0f75e4affae7fcba2f7178350ef..9a3eeda483e659f6b0e81f603a054df2b4c5294c 100644 (file)
@@ -1,3 +1,100 @@
+2013-11-09  Patrick Gansterer  <paroga@webkit.org>
+
+        Move RunLoop from WebCore to WTF
+        https://bugs.webkit.org/show_bug.cgi?id=116606
+
+        Reviewed by Anders Carlsson.
+
+        With this change RunLoop can be used in JavaScriptCore too.
+
+        * GNUmakefile.list.am:
+        * WTF.vcxproj/WTF.vcxproj:
+        * WTF.xcodeproj/project.pbxproj:
+        * wtf/CMakeLists.txt:
+        * wtf/PlatformBlackBerry.cmake:
+        * wtf/PlatformEfl.cmake:
+        * wtf/PlatformGTK.cmake:
+        * wtf/PlatformWin.cmake:
+        * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
+        (WTF::RunLoop::Holder::Holder):
+        (WTF::RunLoop::Holder::runLoop):
+        (WTF::RunLoop::initializeMainRunLoop):
+        (WTF::RunLoop::current):
+        (WTF::RunLoop::main):
+        (WTF::RunLoop::isMain):
+        (WTF::RunLoop::performWork):
+        (WTF::RunLoop::dispatch):
+        * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
+        (WTF::RunLoop::TimerBase::startRepeating):
+        (WTF::RunLoop::TimerBase::startOneShot):
+        (WTF::RunLoop::TimerBase::isRepeating):
+        (WTF::RunLoop::Timer::Timer):
+        (WTF::RunLoop::Timer::fired):
+        * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
+        (WTF::RunLoop::RunLoop):
+        (WTF::RunLoop::~RunLoop):
+        (WTF::RunLoop::wakeUp):
+        * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
+        (WTF::RunLoop::performWork):
+        (WTF::RunLoop::RunLoop):
+        (WTF::RunLoop::~RunLoop):
+        (WTF::RunLoop::runForDuration):
+        (WTF::RunLoop::wakeUp):
+        (WTF::RunLoop::run):
+        (WTF::RunLoop::stop):
+        (WTF::RunLoop::TimerBase::timerFired):
+        (WTF::RunLoop::TimerBase::TimerBase):
+        (WTF::RunLoop::TimerBase::~TimerBase):
+        (WTF::RunLoop::TimerBase::start):
+        (WTF::RunLoop::TimerBase::stop):
+        (WTF::RunLoop::TimerBase::isActive):
+        * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
+        (WTF::RunLoop::RunLoop):
+        (WTF::RunLoop::~RunLoop):
+        (WTF::RunLoop::run):
+        (WTF::RunLoop::stop):
+        (WTF::RunLoop::wakeUpEvent):
+        (WTF::RunLoop::wakeUp):
+        (WTF::RunLoop::TimerBase::TimerBase):
+        (WTF::RunLoop::TimerBase::~TimerBase):
+        (WTF::RunLoop::TimerBase::timerFired):
+        (WTF::RunLoop::TimerBase::start):
+        (WTF::RunLoop::TimerBase::stop):
+        (WTF::RunLoop::TimerBase::isActive):
+        * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
+        (WTF::RunLoop::RunLoop):
+        (WTF::RunLoop::~RunLoop):
+        (WTF::RunLoop::run):
+        (WTF::RunLoop::innermostLoop):
+        (WTF::RunLoop::pushNestedMainLoop):
+        (WTF::RunLoop::popNestedMainLoop):
+        (WTF::RunLoop::stop):
+        (WTF::RunLoop::queueWork):
+        (WTF::RunLoop::wakeUp):
+        (WTF::RunLoop::TimerBase::TimerBase):
+        (WTF::RunLoop::TimerBase::~TimerBase):
+        (WTF::RunLoop::TimerBase::clearTimerSource):
+        (WTF::RunLoop::TimerBase::timerFiredCallback):
+        (WTF::RunLoop::TimerBase::start):
+        (WTF::RunLoop::TimerBase::stop):
+        (WTF::RunLoop::TimerBase::isActive):
+        * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
+        (WTF::RunLoop::RunLoopWndProc):
+        (WTF::RunLoop::wndProc):
+        (WTF::RunLoop::run):
+        (WTF::RunLoop::stop):
+        (WTF::RunLoop::registerRunLoopMessageWindowClass):
+        (WTF::RunLoop::RunLoop):
+        (WTF::RunLoop::~RunLoop):
+        (WTF::RunLoop::wakeUp):
+        (WTF::RunLoop::TimerBase::timerFired):
+        (WTF::generateTimerID):
+        (WTF::RunLoop::TimerBase::TimerBase):
+        (WTF::RunLoop::TimerBase::~TimerBase):
+        (WTF::RunLoop::TimerBase::start):
+        (WTF::RunLoop::TimerBase::stop):
+        (WTF::RunLoop::TimerBase::isActive):
+
 2013-11-08  Alexey Proskuryakov  <ap@apple.com>
 
         Make base64url decoding actually work
index 270ebb4fde41e650e22571765ef43c59c9ad314f..792610464b424177308dd143661ce81d8dd2f0e6 100644 (file)
@@ -137,6 +137,8 @@ wtf_sources += \
     Source/WTF/wtf/RefPtr.h \
     Source/WTF/wtf/RefPtrHashMap.h \
     Source/WTF/wtf/RetainPtr.h \
+    Source/WTF/wtf/RunLoop.cpp \
+    Source/WTF/wtf/RunLoop.h \
     Source/WTF/wtf/SHA1.cpp \
     Source/WTF/wtf/SHA1.h \
     Source/WTF/wtf/SaturatedArithmetic.h \
@@ -216,6 +218,7 @@ wtf_sources += \
     Source/WTF/wtf/gobject/GlibUtilities.cpp \
     Source/WTF/wtf/gobject/GlibUtilities.h \
     Source/WTF/wtf/gtk/MainThreadGtk.cpp \
+    Source/WTF/wtf/gtk/RunLoopGtk.cpp \
     Source/WTF/wtf/text/ASCIIFastPath.h \
     Source/WTF/wtf/text/AtomicString.cpp \
     Source/WTF/wtf/text/AtomicString.h \
index 15be653f172fb4dc40b08f9775494f225e0689aa..516c5f11736a46ecad59e0202f2d946ecac97175 100644 (file)
@@ -89,6 +89,7 @@
     <ClCompile Include="..\wtf\RAMSize.cpp" />\r
     <ClCompile Include="..\wtf\RandomNumber.cpp" />\r
     <ClCompile Include="..\wtf\RefCountedLeakCounter.cpp" />\r
+    <ClCompile Include="..\wtf\RunLoop.cpp" />\r
     <ClCompile Include="..\wtf\SHA1.cpp" />\r
     <ClCompile Include="..\wtf\SixCharacterHash.cpp" />\r
     <ClCompile Include="..\wtf\SizeLimits.cpp" />\r
     <ClCompile Include="..\wtf\unicode\icu\CollatorICU.cpp" />\r
     <ClCompile Include="..\wtf\unicode\UTF8.cpp" />\r
     <ClCompile Include="..\wtf\win\MainThreadWin.cpp" />\r
+    <ClCompile Include="..\wtf\win\RunLoopWin.cpp" />\r
     <ClCompile Include="..\wtf\WTFThreadData.cpp" />\r
     <ClCompile Include="..\wtf\SchedulePairCF.cpp" />\r
   </ItemGroup>\r
     <ClInclude Include="..\wtf\RefPtr.h" />\r
     <ClInclude Include="..\wtf\RefPtrHashMap.h" />\r
     <ClInclude Include="..\wtf\RetainPtr.h" />\r
+    <ClInclude Include="..\wtf\RunLoop.h" />\r
     <ClInclude Include="..\wtf\SaturatedArithmetic.h" />\r
     <ClInclude Include="..\wtf\SchedulePair.h" />\r
     <ClInclude Include="..\wtf\SegmentedVector.h" />\r
index c6adfc8780c93d1fb72dae01b9d95b846c497d23..adcb4a2a537ba094496c9bd0222025d44e1474f9 100644 (file)
@@ -60,6 +60,9 @@
                26299B6E17A9E5B800ADEBE5 /* Ref.h in Headers */ = {isa = PBXBuildFile; fileRef = 26299B6D17A9E5B800ADEBE5 /* Ref.h */; };
                2C05385415BC819000F21B96 /* GregorianDateTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C05385315BC819000F21B96 /* GregorianDateTime.h */; };
                2CCD892A15C0390200285083 /* GregorianDateTime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2CCD892915C0390200285083 /* GregorianDateTime.cpp */; };
+               2CDED0EF18115C38004DBA70 /* RunLoopCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2CDED0EE18115C38004DBA70 /* RunLoopCF.cpp */; };
+               2CDED0F318115C85004DBA70 /* RunLoop.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2CDED0F118115C85004DBA70 /* RunLoop.cpp */; };
+               2CDED0F418115C85004DBA70 /* RunLoop.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CDED0F218115C85004DBA70 /* RunLoop.h */; };
                44F66008171AFAE600E4AD19 /* EnumClass.h in Headers */ = {isa = PBXBuildFile; fileRef = 44F66007171AFAA900E4AD19 /* EnumClass.h */; };
                4F0321BC156AA8D1006EBAF6 /* BitArray.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F0321BB156AA8D1006EBAF6 /* BitArray.h */; };
                7E29C33E15FFD79B00516D61 /* ObjcRuntimeExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E29C33D15FFD79B00516D61 /* ObjcRuntimeExtras.h */; };
                26299B6D17A9E5B800ADEBE5 /* Ref.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ref.h; sourceTree = "<group>"; };
                2C05385315BC819000F21B96 /* GregorianDateTime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GregorianDateTime.h; sourceTree = "<group>"; };
                2CCD892915C0390200285083 /* GregorianDateTime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GregorianDateTime.cpp; sourceTree = "<group>"; };
+               2CDED0EE18115C38004DBA70 /* RunLoopCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RunLoopCF.cpp; path = cf/RunLoopCF.cpp; sourceTree = "<group>"; };
+               2CDED0F118115C85004DBA70 /* RunLoop.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RunLoop.cpp; sourceTree = "<group>"; };
+               2CDED0F218115C85004DBA70 /* RunLoop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RunLoop.h; sourceTree = "<group>"; };
                44DEE74A152274BB00C6EC37 /* iOS.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = iOS.xcconfig; sourceTree = "<group>"; };
                44F66007171AFAA900E4AD19 /* EnumClass.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EnumClass.h; sourceTree = "<group>"; };
                4F0321BB156AA8D1006EBAF6 /* BitArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitArray.h; sourceTree = "<group>"; };
                        path = ios;
                        sourceTree = "<group>";
                };
+               2CDED0F018115C3F004DBA70 /* cf */ = {
+                       isa = PBXGroup;
+                       children = (
+                               2CDED0EE18115C38004DBA70 /* RunLoopCF.cpp */,
+                       );
+                       name = cf;
+                       sourceTree = "<group>";
+               };
                5D247B5714689B8600E78B76 = {
                        isa = PBXGroup;
                        children = (
                A876DBD6151816E500DADB95 /* wtf */ = {
                        isa = PBXGroup;
                        children = (
+                               2CDED0F018115C3F004DBA70 /* cf */,
                                A8A47281151A825A004123FF /* dtoa */,
                                1FA47C87152502DA00568D1B /* ios */,
                                A8A472C4151A825A004123FF /* mac */,
                                A8A47303151A825B004123FF /* RefPtr.h */,
                                A8A47304151A825B004123FF /* RefPtrHashMap.h */,
                                A8A47305151A825B004123FF /* RetainPtr.h */,
+                               2CDED0F118115C85004DBA70 /* RunLoop.cpp */,
+                               2CDED0F218115C85004DBA70 /* RunLoop.h */,
                                1469419016EAAF6D0024E146 /* RunLoopTimer.h */,
                                1469419116EAAF6D0024E146 /* RunLoopTimerCF.cpp */,
                                14F3B0F615E45E4600210069 /* SaturatedArithmetic.h */,
                                A8A4741C151A825B004123FF /* RefPtr.h in Headers */,
                                A8A4741D151A825B004123FF /* RefPtrHashMap.h in Headers */,
                                A8A4741E151A825B004123FF /* RetainPtr.h in Headers */,
+                               2CDED0F418115C85004DBA70 /* RunLoop.h in Headers */,
                                1469419216EAAF6D0024E146 /* RunLoopTimer.h in Headers */,
                                14F3B0F715E45E4600210069 /* SaturatedArithmetic.h in Headers */,
                                1469419616EAAFF80024E146 /* SchedulePair.h in Headers */,
                                143F611F1565F0F900DB514A /* RAMSize.cpp in Sources */,
                                A8A47414151A825B004123FF /* RandomNumber.cpp in Sources */,
                                A8A4741A151A825B004123FF /* RefCountedLeakCounter.cpp in Sources */,
+                               2CDED0F318115C85004DBA70 /* RunLoop.cpp in Sources */,
+                               2CDED0EF18115C38004DBA70 /* RunLoopCF.cpp in Sources */,
                                1469419316EAAF6D0024E146 /* RunLoopTimerCF.cpp in Sources */,
                                1469419916EAB0410024E146 /* SchedulePairCF.cpp in Sources */,
                                A5BA15F3182433A900A82E69 /* StringMac.mm in Sources */,
index b617b7df8d625f8872272cd26ce40c0ad12e0311..ab2e4bf5cdd88c3e6dcc7cf4a8da282e07af506f 100644 (file)
@@ -86,6 +86,7 @@ set(WTF_HEADERS
     RefPtr.h
     RefPtrHashMap.h
     RetainPtr.h
+    RunLoop.h
     SHA1.h
     SaturatedArithmetic.h
     SegmentedVector.h
@@ -173,6 +174,7 @@ set(WTF_SOURCES
     RAMSize.cpp
     RandomNumber.cpp
     RefCountedLeakCounter.cpp
+    RunLoop.cpp
     SHA1.cpp
     SixCharacterHash.cpp
     StackBounds.cpp
index b5de3052336d95135741780f1a38e4d0bcf05c2b..085766c46c12e9ef5b271bfdda6b653a257278b8 100644 (file)
@@ -1,3 +1,4 @@
 list(APPEND WTF_SOURCES
     blackberry/MainThreadBlackBerry.cpp
+    blackberry/RunLoopBlackBerry.cpp
 )
index 771c82e24bc4bf18e32ec34e7b0b49f692839f66..e10a44238c9529d9d0518b4a1f09c47ac1442f57 100644 (file)
@@ -2,6 +2,7 @@ list(APPEND WTF_SOURCES
     efl/MainThreadEfl.cpp
     efl/OwnPtrEfl.cpp
     efl/RefPtrEfl.cpp
+    efl/RunLoopEfl.cpp
 
     gobject/GOwnPtr.cpp
     gobject/GRefPtr.cpp
index 68940ff24ce8c76bd3b2a9d71d1b61d1af05c30a..43da70956f092746fc615c415ebd44f0a00a582a 100644 (file)
@@ -4,6 +4,7 @@ list(APPEND WTF_SOURCES
     gobject/GlibUtilities.cpp
 
     gtk/MainThreadGtk.cpp
+    gtk/RunLoopGtk.cpp
 )
 
 list(APPEND WTF_LIBRARIES
index 88bdaf713e528c1488e8b9aafd719973a08ff08c..8834d252f4c049c9ddfb335688484293845109aa 100644 (file)
@@ -2,6 +2,7 @@ list(APPEND WTF_SOURCES
     threads/win/BinarySemaphoreWin.cpp
 
     win/MainThreadWin.cpp
+    win/RunLoopWin.cpp
 )
 
 if (WINCE)
similarity index 98%
rename from Source/WebCore/platform/RunLoop.cpp
rename to Source/WTF/wtf/RunLoop.cpp
index 055417cc436f8facfecb635399f3f619b133db43..11a860fd065195d27fb7e9bfc07734e3e7a49074 100644 (file)
@@ -29,7 +29,7 @@
 #include <wtf/StdLibExtras.h>
 #include <wtf/ThreadSpecific.h>
 
-namespace WebCore {
+namespace WTF {
 
 static RunLoop* s_mainRunLoop;
 
@@ -128,4 +128,4 @@ void RunLoop::dispatch(std::function<void ()> function)
     wakeUp();
 }
 
-} // namespace WebCore
+} // namespace WTF
similarity index 85%
rename from Source/WebCore/platform/RunLoop.h
rename to Source/WTF/wtf/RunLoop.h
index c793490b565f0d5673950be802ff402335e9aee8..528b44ede00588c081899034053683319b596546 100644 (file)
 #include <Ecore.h>
 #endif
 
-namespace WebCore {
+namespace WTF {
 
 class RunLoop : public FunctionDispatcher {
 public:
     // Must be called from the main thread (except for the Mac platform, where it
     // can be called from any thread).
-    static void initializeMainRunLoop();
+    WTF_EXPORT_PRIVATE static void initializeMainRunLoop();
 
-    static RunLoop* current();
-    static RunLoop* main();
-    static bool isMain();
+    WTF_EXPORT_PRIVATE static RunLoop* current();
+    WTF_EXPORT_PRIVATE static RunLoop* main();
+    WTF_EXPORT_PRIVATE static bool isMain();
     ~RunLoop();
 
     virtual void dispatch(std::function<void ()>) OVERRIDE;
 
-    static void run();
-    void stop();
-    void wakeUp();
+    WTF_EXPORT_PRIVATE static void run();
+    WTF_EXPORT_PRIVATE void stop();
+    WTF_EXPORT_PRIVATE void wakeUp();
 
 #if PLATFORM(MAC)
-    void runForDuration(double duration);
+    WTF_EXPORT_PRIVATE void runForDuration(double duration);
 #endif
     
     class TimerBase {
         friend class RunLoop;
     public:
-        explicit TimerBase(RunLoop*);
-        virtual ~TimerBase();
+        WTF_EXPORT_PRIVATE explicit TimerBase(RunLoop*);
+        WTF_EXPORT_PRIVATE virtual ~TimerBase();
 
         void startRepeating(double repeatInterval) { start(repeatInterval, true); }
         void startOneShot(double interval) { start(interval, false); }
 
-        void stop();
-        bool isActive() const;
+        WTF_EXPORT_PRIVATE void stop();
+        WTF_EXPORT_PRIVATE bool isActive() const;
 
         virtual void fired() = 0;
 
     private:
-        void start(double nextFireInterval, bool repeat);
+        WTF_EXPORT_PRIVATE void start(double nextFireInterval, bool repeat);
 
         RunLoop* m_runLoop;
 
@@ -157,7 +157,7 @@ private:
     Mutex m_wakeUpEventRequestedLock;
     bool m_wakeUpEventRequested;
 
-    static void wakeUpEvent(void* data, void*, unsigned int);
+    static void wakeUpEvent(void* data, void*, unsigned);
 #elif USE(GLIB)
 public:
     static gboolean queueWork(RunLoop*);
@@ -170,6 +170,8 @@ private:
 #endif
 };
 
-} // namespace WebCore
+} // namespace WTF
+
+using WTF::RunLoop;
 
 #endif // RunLoop_h
similarity index 97%
rename from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp
rename to Source/WTF/wtf/blackberry/RunLoopBlackBerry.cpp
index e820788d6abb09382e9e18cceede675311117563..92b86b5b511851770425f4d928f3df85df1de46b 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "NotImplemented.h"
 
-namespace WebCore {
+namespace WTF {
 
 RunLoop::RunLoop()
 {
@@ -45,4 +45,4 @@ void RunLoop::wakeUp()
     notImplemented();
 }
 
-} // namespace WebCore
+} // namespace WTF
similarity index 98%
rename from Source/WebCore/platform/cf/RunLoopCF.cpp
rename to Source/WTF/wtf/cf/RunLoopCF.cpp
index f618e028792248374fa22bec80163a9715b67957..9675867026114c2582a7119bf3d63594298631ca 100644 (file)
@@ -30,7 +30,7 @@
 #include <dispatch/dispatch.h>
 #include <wtf/AutodrainedPool.h>
 
-namespace WebCore {
+namespace WTF {
 
 void RunLoop::performWork(void* context)
 {
@@ -126,4 +126,4 @@ bool RunLoop::TimerBase::isActive() const
     return m_timer && CFRunLoopTimerIsValid(m_timer.get());
 }
 
-} // namespace WebCore
+} // namespace WTF
similarity index 97%
rename from Source/WebCore/platform/efl/RunLoopEfl.cpp
rename to Source/WTF/wtf/efl/RunLoopEfl.cpp
index a92dcdfe7231ed5212bf0b596a4f72a746925860..4a38497eb3554c2e600a36feb48931f5dfc1ae8a 100644 (file)
@@ -34,7 +34,7 @@
 static const int ecorePipeMessageSize = 1;
 static const char wakupEcorePipeMessage[] = "W";
 
-namespace WebCore {
+namespace WTF {
 
 RunLoop::RunLoop()
     : m_initEfl(false)
@@ -58,7 +58,7 @@ void RunLoop::stop()
     ecore_main_loop_quit();
 }
 
-void RunLoop::wakeUpEvent(void* data, void*, unsigned int)
+void RunLoop::wakeUpEvent(void* data, void*, unsigned)
 {
     RunLoop* loop = static_cast<RunLoop*>(data);
 
@@ -131,4 +131,4 @@ bool RunLoop::TimerBase::isActive() const
     return (m_timer) ? true : false;
 }
 
-} // namespace WebCore
+} // namespace WTF
similarity index 98%
rename from Source/WebCore/platform/gtk/RunLoopGtk.cpp
rename to Source/WTF/wtf/gtk/RunLoopGtk.cpp
index 6e3292d4e948b28bdb8c085c5a545aa860f61d22..8a2ea220cdec8d88aa412381033426677e6d8b4e 100644 (file)
 #include "config.h"
 #include "RunLoop.h"
 
-#include <gdk/gdk.h>
 #include <glib.h>
-
 #include <wtf/MainThread.h>
 
-namespace WebCore {
+namespace WTF {
 
 RunLoop::RunLoop()
 {
@@ -168,4 +166,4 @@ bool RunLoop::TimerBase::isActive() const
     return m_timerSource;
 }
 
-} // namespace WebCore
+} // namespace WTF
similarity index 96%
rename from Source/WebCore/platform/win/RunLoopWin.cpp
rename to Source/WTF/wtf/win/RunLoopWin.cpp
index cf69c0649c73d2568a11c77e83864c9227480b1a..33531b6394c482fc2d39efd6d0816bad5ff0d469 100644 (file)
@@ -31,7 +31,7 @@
 
 using namespace std;
 
-namespace WebCore {
+namespace WTF {
 
 static const UINT PerformWorkMessage = WM_USER + 1;
 static const LPWSTR kRunLoopMessageWindowClassName = L"RunLoopMessageWindow";
@@ -99,8 +99,7 @@ RunLoop::RunLoop()
     registerRunLoopMessageWindowClass();
 
     m_runLoopMessageWindow = ::CreateWindow(kRunLoopMessageWindowClassName, 0, 0,
-                                            CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
-                                            HWND_MESSAGE, 0, 0, this);
+        CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, HWND_MESSAGE, 0, 0, this);
     ASSERT(::IsWindow(m_runLoopMessageWindow));
 }
 
@@ -176,4 +175,4 @@ bool RunLoop::TimerBase::isActive() const
     return m_runLoop->m_activeTimers.contains(m_ID);
 }
 
-} // namespace WebCore
+} // namespace WTF
index 69cc5c9206c65eb2be3ce28cdfa0f8369587d071..87040e7596f70005518b777009e72396806945f0 100644 (file)
@@ -1783,7 +1783,6 @@ set(WebCore_SOURCES
     platform/NotImplemented.cpp
     platform/PlatformEvent.cpp
     platform/PlatformStrategies.cpp
-    platform/RunLoop.cpp
     platform/RuntimeApplicationChecks.cpp
     platform/SchemeRegistry.cpp
     platform/ScrollAnimator.cpp
index 40c83b4add91d5e9cd8edb947a4326a0dd5f193d..377558610068f2b2a20797646e09d1216d516573 100644 (file)
@@ -1,3 +1,22 @@
+2013-11-09  Patrick Gansterer  <paroga@webkit.org>
+
+        Move RunLoop from WebCore to WTF
+        https://bugs.webkit.org/show_bug.cgi?id=116606
+
+        Reviewed by Anders Carlsson.
+
+        * CMakeLists.txt:
+        * GNUmakefile.list.am:
+        * PlatformBlackBerry.cmake:
+        * PlatformEfl.cmake:
+        * PlatformGTK.cmake:
+        * PlatformWin.cmake:
+        * WebCore.exp.in:
+        * WebCore.vcxproj/WebCore.vcxproj:
+        * WebCore.xcodeproj/project.pbxproj:
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
+
 2013-11-09  Andreas Kling  <akling@apple.com>
 
         Tighten typing in SVGResourcesCycleSolver a bit.
index 8a877965e766c98a2db3b9faa645a450f985a31c..771fe0c0ed92663e0e86beea4fd8c59b96b7222d 100644 (file)
@@ -6027,8 +6027,6 @@ platform_sources += \
        Source/WebCore/platform/PODRedBlackTree.h \
        Source/WebCore/platform/ReferrerPolicy.h \
        Source/WebCore/platform/RefCountedSupplement.h \
-       Source/WebCore/platform/RunLoop.cpp \
-       Source/WebCore/platform/RunLoop.h \
        Source/WebCore/platform/RuntimeApplicationChecks.cpp \
        Source/WebCore/platform/RuntimeApplicationChecks.h \
        Source/WebCore/platform/SearchPopupMenu.h \
@@ -6182,7 +6180,6 @@ platformgtk_sources += \
        Source/WebCore/platform/gtk/PlatformMouseEventGtk.cpp \
        Source/WebCore/platform/gtk/PlatformScreenGtk.cpp \
        Source/WebCore/platform/gtk/PlatformWheelEventGtk.cpp \
-       Source/WebCore/platform/gtk/RunLoopGtk.cpp \
        Source/WebCore/platform/gtk/SearchPopupMenuGtk.cpp \
        Source/WebCore/platform/gtk/SearchPopupMenuGtk.h \
        Source/WebCore/platform/gtk/SharedBufferGtk.cpp \
index 8cd2fdcf7ece796944910345f956d5324a72eb61..1a04450fc99ecd8a7ee53a08e5c4cf4d3d8c6fda 100644 (file)
@@ -120,7 +120,6 @@ list(APPEND WebCore_SOURCES
     platform/blackberry/PlatformTouchPointBlackBerry.cpp
     platform/blackberry/PopupMenuBlackBerry.cpp
     platform/blackberry/RenderThemeBlackBerry.cpp
-    platform/blackberry/RunLoopBlackBerry.cpp
     platform/blackberry/SSLKeyGeneratorBlackBerry.cpp
     platform/blackberry/ScrollbarThemeBlackBerry.cpp
     platform/blackberry/SearchPopupMenuBlackBerry.cpp
index 27d2a5b016efcbbd32b02ebe45adbe50f0551445..12d8e0ba07dc79df2a05aa175683fbf370985e2f 100644 (file)
@@ -83,7 +83,6 @@ list(APPEND WebCore_SOURCES
     platform/efl/PlatformScreenEfl.cpp
     platform/efl/PlatformWheelEventEfl.cpp
     platform/efl/RenderThemeEfl.cpp
-    platform/efl/RunLoopEfl.cpp
     platform/efl/ScrollbarEfl.cpp
     platform/efl/ScrollbarThemeEfl.cpp
     platform/efl/SharedTimerEfl.cpp
index 8be07a0155982ba0f7648c43b4fd9cba0baf1d29..197e1d6cb1dadd267fc2e209fc27df2232326c4a 100644 (file)
@@ -164,7 +164,6 @@ list(APPEND WebCore_SOURCES
     platform/gtk/RenderThemeGtk.cpp
     platform/gtk/RenderThemeGtk2.cpp
     platform/gtk/RenderThemeGtk3.cpp
-    platform/gtk/RunLoopGtk.cpp
     platform/gtk/ScrollViewGtk.cpp
     platform/gtk/ScrollbarThemeGtk.cpp
     platform/gtk/ScrollbarThemeGtk2.cpp
index 752e841e8a72a249f10ec6ae28e0ca3b5188b1e6..a0fa0225afc2728d9a688efd9579666a89d9c9b0 100644 (file)
@@ -52,7 +52,6 @@ list(APPEND WebCore_SOURCES
     platform/win/PlatformMouseEventWin.cpp
     platform/win/PlatformScreenWin.cpp
     platform/win/PopupMenuWin.cpp
-    platform/win/RunLoopWin.cpp
     platform/win/SSLKeyGeneratorWin.cpp
     platform/win/ScrollbarThemeWin.cpp
     platform/win/SearchPopupMenuWin.cpp
index 1b11cd28a522dd742c5b0bc386298bcfd7cee8eb..7449cedfd9c47e5558d4d030ca7cd5173ef1f3ae 100644 (file)
@@ -1110,18 +1110,6 @@ __ZN7WebCore7IntRect9intersectERKS0_
 __ZN7WebCore7IntRectC1ERKNS_10LayoutRectE
 __ZN7WebCore7IntRectC1ERKNS_9FloatRectE
 __ZN7WebCore7IntSizeC1ERK6CGSize
-__ZN7WebCore7RunLoop14runForDurationEd
-__ZN7WebCore7RunLoop21initializeMainRunLoopEv
-__ZN7WebCore7RunLoop3runEv
-__ZN7WebCore7RunLoop4mainEv
-__ZN7WebCore7RunLoop4stopEv
-__ZN7WebCore7RunLoop6isMainEv
-__ZN7WebCore7RunLoop6wakeUpEv
-__ZN7WebCore7RunLoop7currentEv
-__ZN7WebCore7RunLoop9TimerBase4stopEv
-__ZN7WebCore7RunLoop9TimerBase5startEdb
-__ZN7WebCore7RunLoop9TimerBaseC2EPS0_
-__ZN7WebCore7RunLoop9TimerBaseD2Ev
 __ZN7WebCore7TextRun19allowsRoundingHacksEv
 __ZN7WebCore7TextRun21s_allowsRoundingHacksE
 __ZN7WebCore7TextRun22setAllowsRoundingHacksEb
@@ -1746,7 +1734,6 @@ __ZNK7WebCore7Element19beforePseudoElementEv
 __ZNK7WebCore7IntRect10intersectsERKS0_
 __ZNK7WebCore7IntRect8containsERKS0_
 __ZNK7WebCore7IntRectcv6CGRectEv
-__ZNK7WebCore7RunLoop9TimerBase8isActiveEv
 __ZNK7WebCore8Document11completeURLERKN3WTF6StringE
 __ZNK7WebCore8Document13axObjectCacheEv
 __ZNK7WebCore8Document31displayStringModifiedByEncodingERKN3WTF6StringE
index 64bdb1c77e91e2104142f404c894e378078815e2..dd29f8d5fa13c382ee19b683d1ab45895080d9ae 100644 (file)
     <ClCompile Include="..\platform\NotImplemented.cpp" />
     <ClCompile Include="..\platform\PlatformEvent.cpp" />
     <ClCompile Include="..\platform\PlatformStrategies.cpp" />
-    <ClCompile Include="..\platform\RunLoop.cpp" />
     <ClCompile Include="..\platform\RuntimeApplicationChecks.cpp" />
     <ClCompile Include="..\platform\SchemeRegistry.cpp" />
     <ClCompile Include="..\platform\ScrollableArea.cpp" />
     <ClCompile Include="..\platform\win\PlatformMouseEventWin.cpp" />
     <ClCompile Include="..\platform\win\PlatformScreenWin.cpp" />
     <ClCompile Include="..\platform\win\PopupMenuWin.cpp" />
-    <ClCompile Include="..\platform\win\RunLoopWin.cpp" />
     <ClCompile Include="..\platform\win\ScrollbarThemeSafari.cpp" />
     <ClCompile Include="..\platform\win\ScrollbarThemeWin.cpp" />
     <ClCompile Include="..\platform\win\SearchPopupMenuWin.cpp" />
     <ClInclude Include="..\platform\PopupMenuStyle.h" />
     <ClInclude Include="..\platform\PurgeableBuffer.h" />
     <ClInclude Include="..\platform\ReferrerPolicy.h" />
-    <ClInclude Include="..\platform\RunLoop.h" />
     <ClInclude Include="..\platform\RuntimeApplicationChecks.h" />
     <ClInclude Include="..\platform\SchemeRegistry.h" />
     <ClInclude Include="..\platform\ScrollableArea.h" />
index 5f4629ba7413bcd554223700a4a1a924782fa365..0b7f608a3cd02662a336465312bca224d7823e3f 100644 (file)
                297BE3D716C03C0E003316BD /* PlatformSpeechSynthesizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 29E4D8DF16B0940F00C84704 /* PlatformSpeechSynthesizer.h */; };
                297BE3D816C03CCE003316BD /* PlatformSpeechSynthesizerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29E4D8E016B0959800C84704 /* PlatformSpeechSynthesizerMac.mm */; };
                297BE3DA16C043D8003316BD /* PlatformSpeechSynthesizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 297BE3D916C043D8003316BD /* PlatformSpeechSynthesizer.cpp */; };
-               29A309AC1561C99B00BBD8E5 /* RunLoopCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29A309AB1561C99B00BBD8E5 /* RunLoopCF.cpp */; };
                29A8122B0FBB9C1D00510293 /* AccessibilityTable.h in Headers */ = {isa = PBXBuildFile; fileRef = 29A8120D0FBB9C1D00510293 /* AccessibilityTable.h */; };
                29A8122C0FBB9C1D00510293 /* AccessibilityList.h in Headers */ = {isa = PBXBuildFile; fileRef = 29A8120E0FBB9C1D00510293 /* AccessibilityList.h */; };
                29A8122E0FBB9C1D00510293 /* AccessibilityARIAGridCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 29A812100FBB9C1D00510293 /* AccessibilityARIAGridCell.h */; };
                BC06EE040BFD71AA00856E9D /* JSHTMLTableElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06EE020BFD71AA00856E9D /* JSHTMLTableElement.cpp */; };
                BC06EE050BFD71AA00856E9D /* JSHTMLTableElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06EE030BFD71AA00856E9D /* JSHTMLTableElement.h */; };
                BC073BAA0C399B1F000F5979 /* FloatConversion.h in Headers */ = {isa = PBXBuildFile; fileRef = BC073BA90C399B1F000F5979 /* FloatConversion.h */; };
-               BC0B358714C4F9830055E22A /* RunLoop.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC0B358514C4F9830055E22A /* RunLoop.cpp */; };
-               BC0B358814C4F9830055E22A /* RunLoop.h in Headers */ = {isa = PBXBuildFile; fileRef = BC0B358614C4F9830055E22A /* RunLoop.h */; settings = {ATTRIBUTES = (Private, ); }; };
                BC0B36A40CD3C67C00AC7EB5 /* Console.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC0B36A10CD3C67C00AC7EB5 /* Console.cpp */; };
                BC0B36A50CD3C67C00AC7EB5 /* Console.h in Headers */ = {isa = PBXBuildFile; fileRef = BC0B36A20CD3C67C00AC7EB5 /* Console.h */; settings = {ATTRIBUTES = (Private, ); }; };
                BC10D76717D8EE6E005E2626 /* RenderBlockFlow.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCFB45F417D8E49400444446 /* RenderBlockFlow.cpp */; };
                2981CAAF131822EC00D12F2A /* AXObjectCache.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AXObjectCache.cpp; sourceTree = "<group>"; };
                2985709215CC532D006355CD /* AccessibilityNodeObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AccessibilityNodeObject.cpp; sourceTree = "<group>"; };
                2985709315CC532D006355CD /* AccessibilityNodeObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AccessibilityNodeObject.h; sourceTree = "<group>"; };
-               29A309AB1561C99B00BBD8E5 /* RunLoopCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RunLoopCF.cpp; sourceTree = "<group>"; };
                29A8120D0FBB9C1D00510293 /* AccessibilityTable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityTable.h; sourceTree = "<group>"; };
                29A8120E0FBB9C1D00510293 /* AccessibilityList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityList.h; sourceTree = "<group>"; };
                29A812100FBB9C1D00510293 /* AccessibilityARIAGridCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityARIAGridCell.h; sourceTree = "<group>"; };
                BC06F24C06D18A7E004A6FA3 /* XSLTProcessor.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = XSLTProcessor.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                BC06F24D06D18A7E004A6FA3 /* XSLTProcessorLibxslt.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLTProcessorLibxslt.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                BC073BA90C399B1F000F5979 /* FloatConversion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FloatConversion.h; sourceTree = "<group>"; };
-               BC0B358514C4F9830055E22A /* RunLoop.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RunLoop.cpp; sourceTree = "<group>"; };
-               BC0B358614C4F9830055E22A /* RunLoop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RunLoop.h; sourceTree = "<group>"; };
                BC0B36A10CD3C67C00AC7EB5 /* Console.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Console.cpp; sourceTree = "<group>"; };
                BC0B36A20CD3C67C00AC7EB5 /* Console.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Console.h; sourceTree = "<group>"; };
                BC0B36A30CD3C67C00AC7EB5 /* Console.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = Console.idl; sourceTree = "<group>"; };
                                E1A8E56517552B2A007488E7 /* CFURLExtras.h */,
                                5160306B0CC4362300C8AC25 /* FileSystemCF.cpp */,
                                1A98956A0AA78F80005EF5EF /* URLCF.cpp */,
-                               29A309AB1561C99B00BBD8E5 /* RunLoopCF.cpp */,
                                512DD8E20D91E2B4000F89EE /* SharedBufferCF.cpp */,
                        );
                        path = cf;
                                7E33CD00127F340D00BE8F17 /* PurgePriority.h */,
                                A72EA3BA1585CF55004FAA26 /* RefCountedSupplement.h */,
                                9831AE49154225A200FE2644 /* ReferrerPolicy.h */,
-                               BC0B358514C4F9830055E22A /* RunLoop.cpp */,
-                               BC0B358614C4F9830055E22A /* RunLoop.h */,
                                293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */,
                                293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */,
                                5162C7F211F77EFA00612EFE /* SchemeRegistry.cpp */,
                                A73F95FF12C97BFE0031AAF9 /* RoundedRect.h in Headers */,
                                A79BADA2161E7F3F00C2E652 /* RuleFeature.h in Headers */,
                                A79BADA4161E7F3F00C2E652 /* RuleSet.h in Headers */,
-                               BC0B358814C4F9830055E22A /* RunLoop.h in Headers */,
                                1A569D1F0D7E2B82007C3983 /* runtime_array.h in Headers */,
                                1A569D210D7E2B82007C3983 /* runtime_method.h in Headers */,
                                1A569D230D7E2B82007C3983 /* runtime_object.h in Headers */,
                                A79BADA1161E7F3F00C2E652 /* RuleFeature.cpp in Sources */,
                                A79BADA3161E7F3F00C2E652 /* RuleSet.cpp in Sources */,
                                078E090217D14CEE00420AA1 /* MediaStreamTrack.cpp in Sources */,
-                               BC0B358714C4F9830055E22A /* RunLoop.cpp in Sources */,
-                               29A309AC1561C99B00BBD8E5 /* RunLoopCF.cpp in Sources */,
                                7C2BDD3D17C7F98C0038FF15 /* JSDOMGlobalObjectTask.cpp in Sources */,
                                1A569D1E0D7E2B82007C3983 /* runtime_array.cpp in Sources */,
                                1A569D200D7E2B82007C3983 /* runtime_method.cpp in Sources */,
index b456d4f5feaeb0cf64ecfeb769004be5e7778aab..dd9af28a795f2142ecdf79fcec0f5ddbb1922573 100644 (file)
@@ -30,7 +30,6 @@
 #include "GraphicsLayerTransform.h"
 #include "Image.h"
 #include "IntSize.h"
-#include "RunLoop.h"
 #include "TiledBackingStore.h"
 #include "TiledBackingStoreClient.h"
 #include "TransformationMatrix.h"
index 02505d0ba7d6289ee7af68670222ebfa6b4595c8..07cd5634fcc7d9a5117eaab756d9ec8ee69aef80 100644 (file)
@@ -30,7 +30,6 @@
 #include "GraphicsSurface.h"
 #include "IntRect.h"
 #include "IntSize.h"
-#include "RunLoop.h"
 #include "TextureMapper.h"
 #include "TextureMapperBackingStore.h"
 #include "TextureMapperFPSCounter.h"
index 38f1347a34ba4c2041461fec4fe44a8edf0a2622..e112875c1d7a229d07a04afc0cc906beaaa671e7 100644 (file)
@@ -73,9 +73,9 @@
 #import <assert.h>
 
 #import <WebCore/WebCoreObjCExtras.h>
-#import <WebCore/RunLoop.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 #import "WebKitLogging.h"
 #import "WebNSObjectExtras.h"
@@ -272,7 +272,7 @@ static OSStatus NSCarbonWindowHandleEvent(EventHandlerCallRef inEventHandlerCall
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index aca3a19cf80f650de0700b76ed966277ed73aefb..eb5aa2c4f58dc52bdc04697036ccbee2aced502e 100644 (file)
@@ -1,3 +1,49 @@
+2013-11-09  Patrick Gansterer  <paroga@webkit.org>
+
+        Move RunLoop from WebCore to WTF
+        https://bugs.webkit.org/show_bug.cgi?id=116606
+
+        Reviewed by Anders Carlsson.
+
+        * Carbon/CarbonWindowAdapter.mm:
+        (+[CarbonWindowAdapter initialize]):
+        * History/WebBackForwardList.mm:
+        (+[WebBackForwardList initialize]):
+        * History/WebHistoryItem.mm:
+        (+[WebHistoryItem initialize]):
+        * Misc/WebCache.mm:
+        (+[WebCache initialize]):
+        * Misc/WebElementDictionary.mm:
+        (+[WebElementDictionary initialize]):
+        * Misc/WebIconDatabase.mm:
+        (+[WebIconDatabase initialize]):
+        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
+        (+[WebHostedNetscapePluginView initialize]):
+        * Plugins/WebBaseNetscapePluginView.mm:
+        * Plugins/WebBasePluginPackage.mm:
+        * Plugins/WebNetscapePluginView.mm:
+        (+[WebNetscapePluginView initialize]):
+        * WebCoreSupport/WebEditorClient.mm:
+        (+[WebUndoStep initialize]):
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+        * WebView/WebArchive.mm:
+        (+[WebArchivePrivate initialize]):
+        * WebView/WebDataSource.mm:
+        (+[WebDataSource initialize]):
+        * WebView/WebHTMLView.mm:
+        (+[WebHTMLViewPrivate initialize]):
+        (+[WebHTMLView initialize]):
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+        * WebView/WebResource.mm:
+        (+[WebResourcePrivate initialize]):
+        * WebView/WebTextIterator.mm:
+        (+[WebTextIteratorPrivate initialize]):
+        * WebView/WebView.mm:
+        (+[WebView initialize]):
+        * WebView/WebViewData.mm:
+        (+[WebViewPrivate initialize]):
+
 2013-11-08  Mark Lam  <mark.lam@apple.com>
 
         Move breakpoint (and exception break) functionality into JSC::Debugger.
index 66155dbb8a9fc6773c1fdb7de9482d7bdda80102..4befe66967f0a544373f75531bc43c0137adeed7 100644 (file)
@@ -42,7 +42,6 @@
 #import <WebCore/HistoryItem.h>
 #import <WebCore/Page.h>
 #import <WebCore/PageCache.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/Settings.h>
 #import <WebCore/ThreadCheck.h>
 #import <WebCore/WebCoreObjCExtras.h>
@@ -50,6 +49,7 @@
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/StdLibExtras.h>
 
 using namespace WebCore;
@@ -105,7 +105,7 @@ WebBackForwardList *kit(BackForwardList* backForwardList)
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 579ff6cc51a18593af083851e448b6667e1fbd63..550e6e1a235f1d581f136035a84493882291dba7 100644 (file)
 #import <WebCore/Image.h>
 #import <WebCore/URL.h>
 #import <WebCore/PageCache.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/ThreadCheck.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 #import <wtf/StdLibExtras.h>
 #import <wtf/text/WTFString.h>
 
@@ -97,7 +97,7 @@ void WKNotifyHistoryItemChanged(HistoryItem*)
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 0cbed0122f89612d7c046c7d79710f1fb7d95880..7651876572e1773ec40d886975355860e5c806ab 100644 (file)
@@ -33,9 +33,9 @@
 #import <WebCore/ApplicationCacheStorage.h>
 #import <WebCore/CrossOriginPreflightResultCache.h>
 #import <WebCore/MemoryCache.h>
-#import <WebCore/RunLoop.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 @implementation WebCache
 
@@ -43,7 +43,7 @@
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     InitWebCoreSystemInterface();   
 }
 
index 17f22019070c40116557be0ca63f7c4d8d2deff6..9094a38b26d9a82f6576561815f814412f97e0ec 100644 (file)
 #import <WebCore/Frame.h>
 #import <WebCore/HitTestResult.h>
 #import <WebCore/Image.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebKit/DOMCore.h>
 #import <WebKit/DOMExtensions.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -67,7 +67,7 @@ static void cacheValueForKey(const void *key, const void *value, void *self)
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 7f873ab1edc6ce2968b3772fd5e90b41c4e08b85..1e3991b0c9ee7743de159f5590287462e93236b5 100644 (file)
 #import <WebCore/IconDatabase.h>
 #import <WebCore/Image.h>
 #import <WebCore/IntSize.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/SharedBuffer.h>
 #import <WebCore/ThreadCheck.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -90,7 +90,7 @@ static WebIconDatabaseClient* defaultClient()
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
 }
 
 + (WebIconDatabase *)sharedIconDatabase
index 7e05b348a1cd4f00d5775621d9800ff13b01c693..181ab7059133cd53f62212bbe1c95db674a5ef41 100644 (file)
 #import <WebCore/RenderEmbeddedObject.h>
 #import <WebCore/ResourceError.h>
 #import <WebCore/WebCoreObjCExtras.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/runtime_root.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
 #import <wtf/ObjcRuntimeExtras.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 using namespace WebKit;
@@ -73,7 +73,7 @@ extern "C" {
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
     WKSendUserChangeNotifications();
 }
index abcc82b24ba2eb2a37e216cffe1613107924068e..14775b52ca88ae6e1b1a3afa363001569e1626d3 100644 (file)
 #import <WebCore/ProtectionSpace.h>
 #import <WebCore/RenderView.h>
 #import <WebCore/RenderWidget.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/SecurityOrigin.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebKit/DOMPrivate.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 #import <wtf/text/CString.h>
 
 #define LoginWindowDidSwitchFromUserNotification    @"WebLoginWindowDidSwitchFromUserNotification"
@@ -75,7 +75,7 @@ using namespace WebCore;
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
     WKSendUserChangeNotifications();
 }
index 5b07b980592de23c0af27c90bd0d9744d2e22974..240c498cd0ae9d1a93e2d573e3cf3f8f000dd8c1 100644 (file)
@@ -29,7 +29,6 @@
 #import <WebKit/WebBasePluginPackage.h>
 
 #import <algorithm>
-#import <WebCore/RunLoop.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebKit/WebKitNSStringExtras.h>
 #import <WebKit/WebNetscapePluginPackage.h>
@@ -38,6 +37,7 @@
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
 #import <wtf/ObjcRuntimeExtras.h>
+#import <wtf/RunLoop.h>
 #import <wtf/Vector.h>
 #import <wtf/text/CString.h>
 
@@ -68,7 +68,7 @@ using namespace WebCore;
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 7f4c88a5bef02c9e112020c57428b9705bf160f8..6d0f3dd8ad9136bd82be3f3825e55b4338f8d995 100644 (file)
@@ -67,7 +67,6 @@
 #import <WebCore/Page.h> 
 #import <WebCore/PluginMainThreadScheduler.h>
 #import <WebCore/ProxyServer.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/ScriptController.h>
 #import <WebCore/SecurityOrigin.h>
 #import <WebCore/SoftLinking.h> 
@@ -82,6 +81,7 @@
 #import <runtime/JSLock.h>
 #import <wtf/Assertions.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 #import <wtf/text/CString.h>
 
 #define LoginWindowDidSwitchFromUserNotification    @"WebLoginWindowDidSwitchFromUserNotification"
@@ -194,7 +194,7 @@ typedef struct {
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
     WKSendUserChangeNotifications();
 }
index e2cea0c0c68faa39f5574e3c16e6584ed226b6ad..dc268e2661cf30712809d51a5a1b50a385d20757 100644 (file)
@@ -61,7 +61,6 @@
 #import <WebCore/LegacyWebArchive.h>
 #import <WebCore/Page.h>
 #import <WebCore/PlatformKeyboardEvent.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/Settings.h>
 #import <WebCore/SpellChecker.h>
 #import <WebCore/StylePropertySet.h>
@@ -71,6 +70,7 @@
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
 #import <wtf/PassRefPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/text/WTFString.h>
 
 using namespace WebCore;
@@ -107,7 +107,7 @@ static WebViewInsertAction kit(EditorInsertAction coreAction)
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index f8cb134ba743bc264fe3ebcc81fbcb75ec63b934..1875ac0bbdc15afeb1766462f73416939f569668 100644 (file)
 #import <WebCore/ResourceHandle.h>
 #import <WebCore/ResourceLoader.h>
 #import <WebCore/ResourceRequest.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/ScriptController.h>
 #import <WebCore/SharedBuffer.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
 #import <wtf/PassRefPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/text/WTFString.h>
 
 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)
@@ -2009,7 +2009,7 @@ PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 9890f8dfa8c7238c9a7b478d3ed27b02be83d3f6..723316f9ca7384d36bfe6f93d1c804d19e290ac9 100644 (file)
 #import <JavaScriptCore/InitializeThreading.h>
 #import <WebCore/ArchiveResource.h>
 #import <WebCore/LegacyWebArchive.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/ThreadCheck.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -69,7 +69,7 @@ static NSString * const WebSubframeArchivesKey = @"WebSubframeArchives";
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 0efb2ad06ee61c869fe8c23fc28c592bacc8a733..60298df7e3f02b3779a44a476d1735f813384150 100644 (file)
@@ -54,7 +54,6 @@
 #import <WebCore/MIMETypeRegistry.h>
 #import <WebCore/ResourceBuffer.h>
 #import <WebCore/ResourceRequest.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/SharedBuffer.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebCore/WebCoreURLResponse.h>
@@ -65,6 +64,7 @@
 #import <wtf/MainThread.h>
 #import <wtf/RefPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -145,7 +145,7 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl
     if (self == [WebDataSource class]) {
         JSC::initializeThreading();
         WTF::initializeMainThreadToProcessMainThread();
-        WebCore::RunLoop::initializeMainRunLoop();
+        RunLoop::initializeMainRunLoop();
         WebCoreObjCFinalizeOnMainThread(self);
     }
 }
index a2aef2abdf2614fb185d0dafc246e65af6ac7c80..486280e47b6a55d693f84a35142da338e2bf79bf 100644 (file)
 #import <WebCore/RenderView.h>
 #import <WebCore/RenderWidget.h>
 #import <WebCore/ResourceBuffer.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/RuntimeApplicationChecks.h>
 #import <WebCore/SharedBuffer.h>
 #import <WebCore/SimpleFontData.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
 #import <wtf/ObjcRuntimeExtras.h>
+#import <wtf/RunLoop.h>
 
 #if USE(ACCELERATED_COMPOSITING)
 #import <QuartzCore/QuartzCore.h>
@@ -564,7 +564,7 @@ static NSCellStateValue kit(TriState state)
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
     
     if (!oldSetCursorForMouseLocationIMP) {
@@ -2273,7 +2273,7 @@ static bool mouseEventIsPartOfClickOrDrag(NSEvent *event)
                              returnTypes:[[self class] _insertablePasteboardTypes]];
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 775c2f32caab3d2c9e9963970cbd973c5baf5940..6f0e8c98179af342e51cec23da3b68b9f56a3bdd 100644 (file)
 #import <WebCore/ApplicationCacheStorage.h>
 #import <WebCore/NetworkStorageSession.h>
 #import <WebCore/ResourceHandle.h>
-#import <WebCore/RunLoop.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -306,7 +306,7 @@ public:
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
 
     NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
         @"Times",                       WebKitStandardFontPreferenceKey,
index a4ec35315afd4bf45dc2c5de64720a31607c90cd..ac2e0a65ee2e8e10cc7409925a385bce13ae1604 100644 (file)
 #import <wtf/PassRefPtr.h>
 #import <WebCore/ArchiveResource.h>
 #import <WebCore/LegacyWebArchive.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/RuntimeApplicationChecks.h>
 #import <WebCore/TextEncoding.h>
 #import <WebCore/ThreadCheck.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebCore/WebCoreURLResponse.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 
@@ -68,7 +68,7 @@ static NSString * const WebResourceResponseKey =          @"WebResourceResponse"
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 9b1bd8feb553fd8d110ade2cf6365da42410576c..e8914d972d69032429dd451ec44825e573964dd3 100644 (file)
 #import "DOMNodeInternal.h"
 #import "DOMRangeInternal.h"
 #import "WebTypesInternal.h"
-#import <wtf/Vector.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/TextIterator.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
+#import <wtf/Vector.h>
 
 using namespace JSC;
 using namespace WebCore;
@@ -50,7 +50,7 @@ using namespace WebCore;
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 2953627c5a32a37028b429475f4de8c56a00f4f3..9490210044a9a9abc9fa2b0ce3d26202f44a5704 100644 (file)
 #import <WebCore/ResourceHandle.h>
 #import <WebCore/ResourceLoadScheduler.h>
 #import <WebCore/ResourceRequest.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/RuntimeApplicationChecks.h>
 #import <WebCore/RuntimeEnabledFeatures.h>
 #import <WebCore/SchemeRegistry.h>
 #import <wtf/ObjcRuntimeExtras.h>
 #import <wtf/RefCountedLeakCounter.h>
 #import <wtf/RefPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/StdLibExtras.h>
 
 #if ENABLE(DASHBOARD_SUPPORT)
@@ -3361,7 +3361,7 @@ static Vector<String> toStringVector(NSArray* patterns)
     InitWebCoreSystemInterface();
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
 
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_applicationWillTerminate) name:NSApplicationWillTerminateNotification object:NSApp];
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_cacheModelChangedNotification:) name:WebPreferencesCacheModelChangedInternalNotification object:nil];
index d71fd653b4571e7b31e3be71358df65aedff5e03..0343a9c4760a273835b595dedaee993c3d823de0 100644 (file)
 #import <WebCore/AlternativeTextUIController.h>
 #import <WebCore/WebCoreObjCExtras.h>
 #import <WebCore/HistoryItem.h>
-#import <WebCore/RunLoop.h>
 #import <objc/objc-auto.h>
 #import <runtime/InitializeThreading.h>
 #import <wtf/MainThread.h>
+#import <wtf/RunLoop.h>
 
 BOOL applicationIsTerminating = NO;
 int pluginDatabaseClientCount = 0;
@@ -74,7 +74,7 @@ WebViewLayerFlushScheduler::WebViewLayerFlushScheduler(LayerFlushController* flu
 {
     JSC::initializeThreading();
     WTF::initializeMainThreadToProcessMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
     WebCoreObjCFinalizeOnMainThread(self);
 }
 
index 3405802f7849b5aeec4d5aeeaf49cb17be46ff71..7e0102bbf1c53a0aca8b98fb9d4a072547b05b42 100644 (file)
@@ -1,3 +1,70 @@
+2013-11-09  Patrick Gansterer  <paroga@webkit.org>
+
+        Move RunLoop from WebCore to WTF
+        https://bugs.webkit.org/show_bug.cgi?id=116606
+
+        Reviewed by Anders Carlsson.
+
+        * DatabaseProcess/DatabaseProcess.cpp:
+        * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
+        * NetworkProcess/NetworkConnectionToWebProcess.cpp:
+        * NetworkProcess/NetworkProcess.cpp:
+        * NetworkProcess/NetworkProcess.h:
+        * NetworkProcess/NetworkResourceLoader.h:
+        * NetworkProcess/mac/DiskCacheMonitor.h:
+        * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
+        * Platform/CoreIPC/Connection.cpp:
+        * Platform/CoreIPC/Connection.h:
+        * Platform/CoreIPC/mac/ConnectionMac.cpp:
+        * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
+        * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
+        * PluginProcess/PluginControllerProxy.h:
+        * PluginProcess/PluginProcess.cpp:
+        * PluginProcess/PluginProcess.h:
+        * PluginProcess/WebProcessConnection.cpp:
+        * PluginProcess/unix/PluginProcessMainUnix.cpp:
+        * Shared/ChildProcess.cpp:
+        * Shared/ChildProcess.h:
+        * Shared/ChildProcessProxy.cpp:
+        * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
+        * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
+        * Shared/Plugins/NPObjectProxy.cpp:
+        * Shared/WebKit2Initialize.cpp:
+        (WebKit::InitializeWebKit2):
+        * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
+        * UIProcess/API/mac/FindIndicatorWindow.h:
+        * UIProcess/API/mac/WKPrintingView.mm:
+        * UIProcess/API/mac/WKView.mm:
+        * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
+        * UIProcess/DrawingAreaProxyImpl.h:
+        * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
+        * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
+        * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
+        * UIProcess/Network/NetworkProcessProxy.cpp:
+        * UIProcess/Plugins/PluginProcessProxy.cpp:
+        * UIProcess/ResponsivenessTimer.cpp:
+        * UIProcess/ResponsivenessTimer.h:
+        * UIProcess/VisitedLinkProvider.h:
+        * UIProcess/WebContext.cpp:
+        * UIProcess/WebProcessProxy.cpp:
+        * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
+        * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
+        * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
+        * WebProcess/Network/WebResourceLoadScheduler.h:
+        * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
+        * WebProcess/Plugins/Netscape/NetscapePlugin.h:
+        * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
+        * WebProcess/Plugins/PluginView.h:
+        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
+        * WebProcess/WebPage/DrawingAreaImpl.h:
+        * WebProcess/WebPage/EventDispatcher.cpp:
+        * WebProcess/WebPage/PageOverlay.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        * WebProcess/WebPage/WebPage.h:
+        * WebProcess/WebProcess.cpp:
+        * WebProcess/efl/WebProcessMainEfl.cpp:
+        * WebProcess/gtk/WebProcessMainGtk.cpp:
+
 2013-11-08  Brady Eidson  <beidson@apple.com>
 
         Merge IDBDatabaseBackendInterface and IDBDatabaseBackendImpl
index 2297b94ea76ca166d818546db1051c73b2881d3c..a5c084210dd9bef3061d355436d07deeb7ed78c3 100644 (file)
@@ -31,8 +31,6 @@
 
 #if ENABLE(DATABASE_PROCESS)
 
-using namespace WebCore;
-
 namespace WebKit {
 
 DatabaseProcess& DatabaseProcess::shared()
index 1e941fbacf90c94f37ad75ee42a61f6af3c3e2c8..a6fe73ab322b8f54a13f4106f3e057e8aa6cf3b1 100644 (file)
@@ -29,7 +29,7 @@
 #include "DatabaseProcessIDBDatabaseBackend.h"
 #include "DatabaseProcessIDBDatabaseBackendMessages.h"
 #include "DatabaseToWebProcessConnectionMessages.h"
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(DATABASE_PROCESS)
 
index 03af1c4ff218f9daffe6b2e25ff59b143ab0d216..e007fd6375c642937a7884cfd5b9f1f335163d78 100644 (file)
@@ -39,7 +39,7 @@
 #include <WebCore/PlatformCookieJar.h>
 #include <WebCore/ResourceLoaderOptions.h>
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(NETWORK_PROCESS)
 
index 4449e1735c90d41b7127b0b9679bec39968592f1..a3a60bde9ea9ecc74aead1d0540f7c29cb32ecd3 100644 (file)
@@ -44,7 +44,7 @@
 #include "WebCookieManager.h"
 #include <WebCore/Logging.h>
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 
 #if USE(SECURITY_FRAMEWORK)
index 0128174a36811c1dcd272bf03cec10405edd1100..ca6f8fbb5f3835cbaa4a2096e275d9348b98e8f0 100644 (file)
 #include "NetworkResourceLoadScheduler.h"
 #include <wtf/Forward.h>
 
-namespace WebCore {
-    class RunLoop;
-}
-
 namespace WebKit {
 
 class AuthenticationManager;
index 8ca227a21ff790e9f043a974d2c7252eb1d27d34..327ae34cc7b4d2a54ba1e1a573b4ba54b0bbf18c 100644 (file)
@@ -35,8 +35,8 @@
 #include <WebCore/ResourceHandleClient.h>
 #include <WebCore/ResourceLoaderOptions.h>
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/RunLoop.h>
 #include <wtf/MainThread.h>
+#include <wtf/RunLoop.h>
 
 typedef const struct _CFCachedURLResponse* CFCachedURLResponseRef;
 
index c137995e5b8e50fe9d60e4ad1fd47801bed613ad..49d0c0f6e60c37f105067cf8fe4b46252e09c1fb 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "MessageSender.h"
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 typedef const struct _CFCachedURLResponse* CFCachedURLResponseRef;
 
index d080b7840a3263b14c918cbb7b1fc92e53c75cef..0b83a4a4972c4fa247e93ba6b430a6a53f901139 100644 (file)
 #include "ProxyResolverSoup.h"
 #include "WKBase.h"
 #include "WebKit2Initialize.h"
-#include <WebCore/RunLoop.h>
 #include <WebKit2/NetworkProcess.h>
 #include <error.h>
 #include <runtime/InitializeThreading.h>
 #include <stdlib.h>
 #include <wtf/MainThread.h>
+#include <wtf/RunLoop.h>
 #include <wtf/gobject/GRefPtr.h>
 
 #if PLATFORM(EFL)
index e291410b50de2a04ffb2509864b0eb156baf46ad..52f2bf28fa0bb1384b4c0b91b42a640c8a2097e0 100644 (file)
 #include "config.h"
 #include "Connection.h"
 
-#include <WebCore/RunLoop.h>
 #include <wtf/CurrentTime.h>
 #include <wtf/HashSet.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/WTFString.h>
 #include <wtf/threads/BinarySemaphore.h>
 
-using namespace WebCore;
-
 namespace CoreIPC {
 
 class Connection::SyncMessageState : public ThreadSafeRefCounted<Connection::SyncMessageState> {
index 7f073bf36d67313b0e6b82d670eae25f24303395..14538c5144ddd1b2d74a9004b92592364ccead48 100644 (file)
@@ -49,7 +49,7 @@
 #include "PlatformProcessIdentifier.h"
 #endif
 
-namespace WebCore {
+namespace WTF {
 class RunLoop;
 }
 
@@ -117,8 +117,8 @@ public:
     static bool identifierIsNull(Identifier identifier) { return !identifier; }
 #endif
 
-    static PassRefPtr<Connection> createServerConnection(Identifier, Client*, WebCore::RunLoop* clientRunLoop);
-    static PassRefPtr<Connection> createClientConnection(Identifier, Client*, WebCore::RunLoop* clientRunLoop);
+    static PassRefPtr<Connection> createServerConnection(Identifier, Client*, WTF::RunLoop* clientRunLoop);
+    static PassRefPtr<Connection> createClientConnection(Identifier, Client*, WTF::RunLoop* clientRunLoop);
     ~Connection();
 
     Client* client() const { return m_client; }
@@ -167,7 +167,7 @@ public:
     bool inSendSync() const { return m_inSendSyncCount; }
 
 private:
-    Connection(Identifier, bool isServer, Client*, WebCore::RunLoop* clientRunLoop);
+    Connection(Identifier, bool isServer, Client*, WTF::RunLoop* clientRunLoop);
     void platformInitialize(Identifier);
     void platformInvalidate();
     
@@ -213,7 +213,7 @@ private:
 
     bool m_isConnected;
     RefPtr<WorkQueue> m_connectionQueue;
-    WebCore::RunLoop* m_clientRunLoop;
+    WTF::RunLoop* m_clientRunLoop;
 
     HashMap<StringReference, std::pair<RefPtr<WorkQueue>, RefPtr<WorkQueueMessageReceiver>>> m_workQueueMessageReceivers;
 
index 27bc2ccd16bdff3521cf46b8415044554a232f9e..11c8f1fa134a89e5632aaf4e01179f17c7314e4e 100644 (file)
 #include "ImportanceAssertion.h"
 #include "MachPort.h"
 #include "MachUtilities.h"
-#include <WebCore/RunLoop.h>
 #include <mach/mach_error.h>
 #include <mach/vm_map.h>
+#include <wtf/RunLoop.h>
 #include <xpc/xpc.h>
 
-using namespace WebCore;
-
 namespace CoreIPC {
 
 static const size_t inlineMessageMaxSize = 4096;
index a871f121a97349d7ff8588ddbca4477d516d2d4c..eababdd939c16d43248be972c4c3a638dbc59008 100644 (file)
@@ -32,7 +32,7 @@
 #import "NetscapePluginModule.h"
 #import "PluginProcess.h"
 #import "WKBase.h"
-#import <WebCore/RunLoop.h>
+#import <wtf/RunLoop.h>
 
 #if USE(APPKIT)
 @interface NSApplication (WebNSApplicationDetails)
index 0c4bdd3e110ad01425b36451cca369063da46d71..07822e680e924e99a2b9dded40f096f35ba07de7 100644 (file)
@@ -29,7 +29,7 @@
 #import "PluginProcess.h"
 #import "WKBase.h"
 #import "XPCServiceEntryPoint.h"
-#import <WebCore/RunLoop.h>
+#import <wtf/RunLoop.h>
 
 namespace WebKit {
 
@@ -59,7 +59,6 @@ public:
 
 } // namespace WebKit
 
-using namespace WebCore;
 using namespace WebKit;
 
 extern "C" WK_EXPORT void PluginServiceInitializer(xpc_connection_t connection, xpc_object_t initializerMessage);
index ce4ef160b6505fad836b7c79c0175749d41c4f93..e87c7a7a4de0f25f966177cc4127d14c0ed1ef51 100644 (file)
@@ -34,9 +34,9 @@
 #include "PluginControllerProxyMessages.h"
 #include "ShareableBitmap.h"
 #include "WebProcessConnectionMessages.h"
-#include <WebCore/RunLoop.h>
 #include <WebCore/SecurityOrigin.h>
 #include <wtf/Noncopyable.h>
+#include <wtf/RunLoop.h>
 
 namespace CoreIPC {
     class DataReference;
@@ -183,14 +183,14 @@ private:
     WebCore::IntRect m_dirtyRect;
 
     // The paint timer, used for coalescing painting.
-    WebCore::RunLoop::Timer<PluginControllerProxy> m_paintTimer;
+    RunLoop::Timer<PluginControllerProxy> m_paintTimer;
     
     // A counter used to prevent the plug-in from being destroyed.
     unsigned m_pluginDestructionProtectCount;
 
     // A timer that we use to prevent destruction of the plug-in while plug-in
     // code is on the stack.
-    WebCore::RunLoop::Timer<PluginControllerProxy> m_pluginDestroyTimer;
+    RunLoop::Timer<PluginControllerProxy> m_pluginDestroyTimer;
 
     // Whether we're waiting for the plug-in proxy in the web process to draw the contents of its
     // backing store into the web process backing store.
index 36d1fc4a165e55b106f6a3b36574857c2cf71cfc..8feb9ffe72ac6738ec5d08f52fdf31c21b64a758 100644 (file)
@@ -38,7 +38,7 @@
 #include "WebProcessConnection.h"
 #include <WebCore/MemoryPressureHandler.h>
 #include <WebCore/NotImplemented.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if PLATFORM(MAC)
 #include <crt_externs.h>
index 7a20ed05b2aa9dc5ebed2852ab6165b935edb2ff..16f323885a57349500a137286917766a90d1ee2a 100644 (file)
@@ -109,7 +109,7 @@ private:
     
     bool m_supportsAsynchronousPluginInitialization;
 
-    WebCore::RunLoop::Timer<PluginProcess> m_minimumLifetimeTimer;
+    RunLoop::Timer<PluginProcess> m_minimumLifetimeTimer;
 
 #if USE(ACCELERATED_COMPOSITING) && PLATFORM(MAC)
     // The Mach port used for accelerated compositing.
index c71c1d482dcd4f26eca592d19e7b7c2368c75854..3a4d15ad59fd25d21d25950c559a8f663c113cb8 100644 (file)
@@ -39,8 +39,8 @@
 #include "PluginProcessConnectionMessages.h"
 #include "PluginProxyMessages.h"
 #include "WebProcessConnectionMessages.h"
-#include <WebCore/RunLoop.h>
 #include <unistd.h>
+#include <wtf/RunLoop.h>
 
 using namespace WebCore;
 
index 0a56461c98c1dce089f63d1d943254b1e26ceb66..067d5d0f5f314cb029f162f65d445f95822ff2a4 100644 (file)
@@ -34,7 +34,7 @@
 #include "NetscapePlugin.h"
 #include "PluginProcess.h"
 #include "WebKit2Initialize.h"
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 #if PLATFORM(GTK)
 #include <gtk/gtk.h>
 #if PLATFORM(X11) && defined(GDK_WINDOWING_X11)
index b2233a35a1a13968a0004a20c1188724bab08125..8e0db8b43e0b9476ade7fe33fcdfb864c339e50c 100644 (file)
@@ -29,8 +29,6 @@
 #include "SandboxInitializationParameters.h"
 #include <unistd.h>
 
-using namespace WebCore;
-
 namespace WebKit {
 
 ChildProcess::ChildProcess()
index ba72262fa1fc8effe79647002900ddf3a034eba9..364f83e9fc022493bcfa81d0c0575055d9fb1199 100644 (file)
@@ -29,9 +29,9 @@
 #include "Connection.h"
 #include "MessageReceiverMap.h"
 #include "MessageSender.h"
-#include <WebCore/RunLoop.h>
 #include <wtf/HashMap.h>
 #include <wtf/RetainPtr.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/StringHash.h>
 #include <wtf/text/WTFString.h>
 
@@ -114,7 +114,7 @@ private:
     // after a given period of time.
     unsigned m_terminationCounter;
 
-    WebCore::RunLoop::Timer<ChildProcess> m_terminationTimer;
+    RunLoop::Timer<ChildProcess> m_terminationTimer;
 
     RefPtr<CoreIPC::Connection> m_connection;
     CoreIPC::MessageReceiverMap m_messageReceiverMap;
@@ -124,7 +124,7 @@ private:
     void setProcessSuppressionEnabledInternal(bool);
     size_t m_activeTaskCount;
     bool m_shouldSuspend;
-    WebCore::RunLoop::Timer<ChildProcess> m_suspensionHysteresisTimer;
+    RunLoop::Timer<ChildProcess> m_suspensionHysteresisTimer;
     RetainPtr<id> m_processSuppressionAssertion;
 #endif
 };
index e9baf9164bd8998fdfdbf49f659c755757645904..11e08682ea5f0c122171b0ed9ab5636b3c6546bf 100644 (file)
@@ -26,9 +26,7 @@
 #include "config.h"
 #include "ChildProcessProxy.h"
 
-#include <WebCore/RunLoop.h>
-
-using namespace WebCore;
+#include <wtf/RunLoop.h>
 
 namespace WebKit {
 
index c4c858294ff5e281b87f23030188c5b55957ffc7..91e2976850f4b835c32451f313476a7c5d46504f 100644 (file)
@@ -29,9 +29,9 @@
 #import "ChildProcess.h"
 #import "CommandLine.h"
 #import "WebKit2Initialize.h"
-#import <WebCore/RunLoop.h>
 #import <WebKitSystemInterface.h>
 #import <sysexits.h>
+#import <wtf/RunLoop.h>
 
 namespace WebKit {
 
index 96a781e7535369f57bd456ead175651b041d02c9..5f8ff4e031ac29fea5b76ec61b9d5db752de9c2b 100644 (file)
@@ -34,8 +34,6 @@
 
 #define SHOW_CRASH_REPORTER 1
 
-using namespace WebCore;
-
 namespace WebKit {
 
 ChildProcessMainDelegate::~ChildProcessMainDelegate()
index e74ca2c6aeb7fe8d707aaae71324eb4c9ed1d4ee..a34f19dc58446fdf1be2f3b693ff4056679d068b 100644 (file)
 #include "NPRemoteObjectMap.h"
 #include "NPRuntimeUtilities.h"
 #include "NPVariantData.h"
-#include <WebCore/RunLoop.h>
 #include <wtf/MainThread.h>
-
-using namespace WebCore;
+#include <wtf/RunLoop.h>
 
 namespace WebKit {
 
index c8882d8ae1f49bb6905a8e0134782beffdb075d0..fe9f5ae7bbf3c0a8b054ba30ebb31e649fe60c26 100644 (file)
@@ -28,9 +28,9 @@
 
 #include "Logging.h"
 #include <WebCore/Logging.h>
-#include <WebCore/RunLoop.h>
 #include <runtime/InitializeThreading.h>
 #include <wtf/MainThread.h>
+#include <wtf/RunLoop.h>
 
 #if PLATFORM(MAC)
 #include "WebSystemInterface.h"
@@ -46,7 +46,7 @@ void InitializeWebKit2()
 
     JSC::initializeThreading();
     WTF::initializeMainThread();
-    WebCore::RunLoop::initializeMainRunLoop();
+    RunLoop::initializeMainRunLoop();
 
 #if !LOG_DISABLED
     WebCore::initializeLoggingChannelsIfNecessary();
index b53155f9d5b987b5862640f8c5b3f118f577c501..67c8fd430492e21d18a8d7a1376d52633a30c19b 100644 (file)
@@ -27,8 +27,8 @@
 #include <WebCore/Image.h>
 #include <WebCore/IntSize.h>
 #include <WebCore/RefPtrCairo.h>
-#include <WebCore/RunLoop.h>
 #include <glib/gi18n-lib.h>
+#include <wtf/RunLoop.h>
 #include <wtf/gobject/GOwnPtr.h>
 #include <wtf/gobject/GRefPtr.h>
 #include <wtf/text/CString.h>
index 8e47801693209fbf17f353de42d133af46fff054..6864b649bf0119c30f705091f4072c922606da7a 100644 (file)
 #define FindIndicatorWindow_h
 
 #import "WebKitSystemInterface.h"
-#import <WebCore/RunLoop.h>
 #import <wtf/Noncopyable.h>
 #import <wtf/RefPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 
 @class WKFindIndicatorWindowAnimation;
 @class WKView;
@@ -66,7 +66,7 @@ private:
     WKWindowBounceAnimationContextRef m_bounceAnimationContext;
     RetainPtr<WKFindIndicatorWindowAnimation> m_bounceAnimation;
 
-    WebCore::RunLoop::Timer<FindIndicatorWindow> m_startFadeOutTimer;
+    RunLoop::Timer<FindIndicatorWindow> m_startFadeOutTimer;
     RetainPtr<WKFindIndicatorWindowAnimation> m_fadeOutAnimation;
 };
 
index 0ecb81c9ab32700f36cdfb68bd8f44649d78db64..6a92e47b55bef3c553eb4251993e164157253a10 100644 (file)
@@ -34,8 +34,8 @@
 #import "WebPageProxy.h"
 #import <PDFKit/PDFKit.h>
 #import <WebCore/GraphicsContext.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/WebCoreObjCExtras.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebKit;
 using namespace WebCore;
index 2fa1ac48b4e69a9e700238534d90139671551de1..93cf0e1b443d88d4b3eb0330a59cb97b1d124f01 100644 (file)
@@ -79,7 +79,6 @@
 #import <WebCore/PlatformEventFactoryMac.h>
 #import <WebCore/PlatformScreen.h>
 #import <WebCore/Region.h>
-#import <WebCore/RunLoop.h>
 #import <WebCore/SharedBuffer.h>
 #import <WebCore/TextAlternativeWithRange.h>
 #import <WebCore/WebCoreNSStringExtras.h>
@@ -90,6 +89,7 @@
 #import <sys/stat.h>
 #import <wtf/RefPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 
 /* API internals. */
 #import "WKBrowsingContextControllerInternal.h"
index 1c4c4dd87cf008bc2be3d771e7a1b5d4cbcfd922..3b25fc1ecde4266856b5b1f784036100b11f8d6c 100644 (file)
@@ -32,8 +32,8 @@
 #include "BackingStore.h"
 #include "DrawingAreaProxy.h"
 #include "LayerTreeContext.h"
-#include <WebCore/RunLoop.h>
 #include <wtf/OwnPtr.h>
+#include <wtf/RunLoop.h>
 
 namespace WebCore {
 class Region;
@@ -116,7 +116,7 @@ private:
     bool m_isBackingStoreDiscardable;
     std::unique_ptr<BackingStore> m_backingStore;
 
-    WebCore::RunLoop::Timer<CoordinatedDrawingAreaProxy> m_discardBackingStoreTimer;
+    RunLoop::Timer<CoordinatedDrawingAreaProxy> m_discardBackingStoreTimer;
 };
 
 } // namespace WebKit
index d310e572ad0bd66907ed74969a762370d28b6afc..43c9321ca997a62e1feedc7defddd3ba8745b7a6 100644 (file)
@@ -29,8 +29,8 @@
 #include "BackingStore.h"
 #include "DrawingAreaProxy.h"
 #include "LayerTreeContext.h"
-#include <WebCore/RunLoop.h>
 #include <wtf/OwnPtr.h>
+#include <wtf/RunLoop.h>
 
 namespace WebCore {
 class Region;
@@ -109,7 +109,7 @@ private:
     bool m_isBackingStoreDiscardable;
     std::unique_ptr<BackingStore> m_backingStore;
 
-    WebCore::RunLoop::Timer<DrawingAreaProxyImpl> m_discardBackingStoreTimer;
+    RunLoop::Timer<DrawingAreaProxyImpl> m_discardBackingStoreTimer;
 };
 
 } // namespace WebKit
index 3bd1ea603e3188b43c305955516f7171fea6d422..69e6b83bcd247a0a3e97d4b406a1d594d262f4aa 100644 (file)
@@ -27,8 +27,8 @@
 #include <WebCore/FileSystem.h>
 #include <WebCore/NetworkingContext.h>
 #include <WebCore/ResourceHandle.h>
-#include <WebCore/RunLoop.h>
 #include <sys/socket.h>
+#include <wtf/RunLoop.h>
 #include <wtf/StdLibExtras.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
index 316918059118f84bf899e4ad01b9fec152a453c0..abe820457e8eff75ee6983576cbe28a4f57f8149 100644 (file)
 #include <WebCore/FileSystem.h>
 #include <WebCore/NetworkingContext.h>
 #include <WebCore/ResourceHandle.h>
-#include <WebCore/RunLoop.h>
 #include <errno.h>
 #include <glib.h>
 #include <locale.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
 #include <wtf/gobject/GOwnPtr.h>
index d8c1223aeed51bf5ffab900025eed2a3b810bfe8..5202e7c5dc8017c30dddcdcae86eb6e352483f76 100644 (file)
@@ -29,7 +29,6 @@
 #import "DynamicLinkerEnvironmentExtractor.h"
 #import "EnvironmentVariables.h"
 #import "WebKitSystemInterface.h"
-#import <WebCore/RunLoop.h>
 #import <crt_externs.h>
 #import <mach-o/dyld.h>
 #import <mach/machine.h>
 #import <sys/stat.h>
 #import <wtf/PassRefPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/Threading.h>
 #import <wtf/text/CString.h>
 #import <wtf/text/WTFString.h>
 #import <xpc/xpc.h>
 
-using namespace WebCore;
-
 // FIXME: We should be doing this another way.
 extern "C" kern_return_t bootstrap_register2(mach_port_t, name_t, mach_port_t, uint64_t);
 
index 0940db4b005380817da91e9e788c6069a2f2844f..fdf6c79e24e4f54660305423b175c103ef7edbf1 100644 (file)
@@ -35,7 +35,7 @@
 #include "NetworkProcessMessages.h"
 #include "WebContext.h"
 #include "WebProcessMessages.h"
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if USE(SECURITY_FRAMEWORK)
 #include "SecItemShimProxy.h"
index 7ad172a407b2a6663d27176c93aeb0edc82a4a4a..da637c4155fdee6f86655ce320247933058428cd 100644 (file)
@@ -37,7 +37,7 @@
 #include "WebPluginSiteDataManager.h"
 #include "WebProcessProxy.h"
 #include <WebCore/NotImplemented.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if PLATFORM(MAC)
 #include "MachPort.h"
index 766ae0e20c27edb4917e76fb15621d6714f5babb..9739fa3a11f5408a6100b0638ebb103a59846fbc 100644 (file)
@@ -26,8 +26,6 @@
 #include "config.h"
 #include "ResponsivenessTimer.h"
 
-using namespace WebCore;
-
 namespace WebKit {
 
 static const double responsivenessTimeout = 3;
index 8db2872fdeafe797c9af4e7ec712916e26b7eeec..f75c0a998ff467dac93ba73abc0e2a56b6c81592 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef ResponsivenessTimer_h
 #define ResponsivenessTimer_h
 
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 namespace WebKit {
 
@@ -56,7 +56,7 @@ private:
     ResponsivenessTimer::Client* m_client;
     bool m_isResponsive;
 
-    WebCore::RunLoop::Timer<ResponsivenessTimer> m_timer;
+    RunLoop::Timer<ResponsivenessTimer> m_timer;
 };
 
 } // namespace WebKit
index e0e531025b1da7023a58d23319deac1b842dc6a9..c0d4ec96371024fefce18f2493766b0c86bb8f85 100644 (file)
@@ -28,9 +28,9 @@
 
 #include "VisitedLinkTable.h"
 #include <WebCore/LinkHash.h>
-#include <WebCore/RunLoop.h>
 #include <wtf/Forward.h>
 #include <wtf/HashSet.h>
+#include <wtf/RunLoop.h>
 
 namespace WebKit {
 
@@ -60,7 +60,7 @@ private:
     VisitedLinkTable m_table;
 
     HashSet<WebCore::LinkHash, WebCore::LinkHashHash> m_pendingVisitedLinks;
-    WebCore::RunLoop::Timer<VisitedLinkProvider> m_pendingVisitedLinksTimer;
+    RunLoop::Timer<VisitedLinkProvider> m_pendingVisitedLinksTimer;
 };
 
 } // namespace WebKit
index 5eef5cf52f6d1cdade93357f4d93968b8ddb4e41..ed626add7e1ec494236e7caac447c999a3c2d66f 100644 (file)
 #include <WebCore/LinkHash.h>
 #include <WebCore/Logging.h>
 #include <WebCore/ResourceRequest.h>
-#include <WebCore/RunLoop.h>
 #include <runtime/InitializeThreading.h>
 #include <runtime/Operations.h>
 #include <wtf/CurrentTime.h>
 #include <wtf/MainThread.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(BATTERY_STATUS)
 #include "WebBatteryManagerProxy.h"
index 0c3cec0d33656e89084801b82dbf85c947232f35..be1bd74d98ef3d161fda07759be3b7bf12a2ec22 100644 (file)
 #include "WebPluginSiteDataManager.h"
 #include "WebProcessMessages.h"
 #include "WebProcessProxyMessages.h"
-#include <WebCore/URL.h>
-#include <WebCore/RunLoop.h>
 #include <WebCore/SuddenTermination.h>
+#include <WebCore/URL.h>
 #include <stdio.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
 
index 0ea109b2340b923849647ef18089ba4e8e6f9f0b..44aa65f81397068c559947fa54718f17fd4a46be 100644 (file)
@@ -30,7 +30,7 @@
 #include "DatabaseToWebProcessConnectionMessages.h"
 #include "WebProcess.h"
 #include "WebProcessIDBDatabaseBackend.h"
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(INDEXED_DATABASE)
 
index 365cb361255909c831e3fadd385cbad6a872254f..f50dfb766b201e071c1ae324346c488eb68feb5c 100644 (file)
 #import "StringUtilities.h"
 #import "WKBase.h"
 #import "WebProcess.h"
-#import <WebCore/RunLoop.h>
 #import <mach/mach_error.h>
 #import <servers/bootstrap.h>
 #import <spawn.h>
 #import <stdio.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/RunLoop.h>
 #import <wtf/text/CString.h>
 #import <wtf/text/WTFString.h>
 
index 22c8ff581850665043dd2975901c2ad9a4a67c52..cee751a506d8e113abf8491a807b9891e2329a44 100644 (file)
@@ -29,7 +29,7 @@
 #import "WKBase.h"
 #import "WebProcess.h"
 #import "XPCServiceEntryPoint.h"
-#import <WebCore/RunLoop.h>
+#import <wtf/RunLoop.h>
 
 using namespace WebCore;
 using namespace WebKit;
index 7ee2a7ed13b1232de00df927fb6bf6c849812eb6..26c2d813ee30ebc14c218af521f14694bffa8708 100644 (file)
@@ -30,7 +30,7 @@
 #include <WebCore/ResourceLoadPriority.h>
 #include <WebCore/ResourceLoadScheduler.h>
 #include <WebCore/ResourceLoader.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(NETWORK_PROCESS)
 
@@ -68,7 +68,7 @@ private:
     void internallyFailedLoadTimerFired();
     
     HashSet<RefPtr<WebCore::ResourceLoader>> m_internallyFailedResourceLoaders;
-    WebCore::RunLoop::Timer<WebResourceLoadScheduler> m_internallyFailedLoadTimer;
+    RunLoop::Timer<WebResourceLoadScheduler> m_internallyFailedLoadTimer;
     
     HashMap<unsigned long, RefPtr<WebResourceLoader>> m_webResourceLoaders;
     
index e5178ad174675c5dc278bab947571280f1747482..fade41df58d47981d314c9a8f44ad31a70faeede 100644 (file)
 
 #if ENABLE(NETSCAPE_PLUGIN_API)
 
-#include <WebCore/RunLoop.h>
 #include <heap/Weak.h>
 #include <heap/WeakInlines.h>
 #include <wtf/Forward.h>
 #include <wtf/HashMap.h>
+#include <wtf/RunLoop.h>
 
 struct NPObject;
 typedef struct _NPVariant NPVariant;
@@ -98,7 +98,7 @@ private:
     HashMap<JSC::JSObject*, NPJSObject*> m_npJSObjects;
     HashMap<NPObject*, JSC::Weak<JSNPObject>> m_jsNPObjects;
     Vector<NPObject*> m_npObjectsToFinalize;
-    WebCore::RunLoop::Timer<NPRuntimeObjectMap> m_finalizationTimer;
+    RunLoop::Timer<NPRuntimeObjectMap> m_finalizationTimer;
 };
 
 } // namespace WebKit
index b649a20e08f76018fed071b126a4dd167c64d82e..29157f25c68e62db89349d41c1daa7ace6d4b1ee 100644 (file)
@@ -33,8 +33,8 @@
 #include <WebCore/AffineTransform.h>
 #include <WebCore/GraphicsLayer.h>
 #include <WebCore/IntRect.h>
-#include <WebCore/RunLoop.h>
 #include <wtf/HashMap.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/StringHash.h>
 
@@ -330,7 +330,7 @@ private:
         bool m_repeat;
         TimerFunc m_timerFunc;
 
-        WebCore::RunLoop::Timer<Timer> m_timer;
+        RunLoop::Timer<Timer> m_timer;
     };
     typedef HashMap<unsigned, std::unique_ptr<Timer>> TimerMap;
     TimerMap m_timers;
@@ -377,7 +377,7 @@ private:
 
     // FIXME: It's a bit wasteful to have one null event timer per plug-in.
     // We should investigate having one per window.
-    WebCore::RunLoop::Timer<NetscapePlugin> m_nullEventTimer;
+    RunLoop::Timer<NetscapePlugin> m_nullEventTimer;
     NP_CGContext m_npCGContext;
 #endif
 #elif PLUGIN_ARCHITECTURE(WIN)
index b350186356e495603f4ce02f1994e8b99391c157..ad82c7aa328f5315faa28f1b6dda2827cdb2ccdd 100644 (file)
 #if ENABLE(NETSCAPE_PLUGIN_API)
 
 #include <WebCore/FileSystem.h>
-#include <WebCore/RunLoop.h>
 #include <WebCore/npruntime_internal.h>
 #include <wtf/Forward.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 
 namespace WebCore {
@@ -105,7 +105,7 @@ private:
     CString m_mimeType;
     CString m_headers;
 
-    WebCore::RunLoop::Timer<NetscapePluginStream> m_deliveryDataTimer;
+    RunLoop::Timer<NetscapePluginStream> m_deliveryDataTimer;
     OwnPtr< Vector<uint8_t>> m_deliveryData;
     bool m_stopStreamWhenDoneDelivering;
 };
index 2d0433d58396d10ed28b57b5b8ce9952f2e16697..891e84976a8acfee5c877b7e566dad8c6360bc09 100644 (file)
@@ -36,9 +36,9 @@
 #include <WebCore/PluginViewBase.h>
 #include <WebCore/ResourceError.h>
 #include <WebCore/ResourceResponse.h>
-#include <WebCore/RunLoop.h>
 #include <WebCore/Timer.h>
 #include <wtf/Deque.h>
+#include <wtf/RunLoop.h>
 
 // FIXME: Eventually this should move to WebCore.
 
@@ -234,7 +234,7 @@ private:
 
     // Pending URLRequests that the plug-in has made.
     Deque<RefPtr<URLRequest>> m_pendingURLRequests;
-    WebCore::RunLoop::Timer<PluginView> m_pendingURLRequestsTimer;
+    RunLoop::Timer<PluginView> m_pendingURLRequestsTimer;
 
     // Pending frame loads that the plug-in has made.
     typedef HashMap<RefPtr<WebFrame>, RefPtr<URLRequest>> FrameLoadMap;
index 242d9dc2273036d395259c40bb3614908c88ded0..939626cf81835fb6caa176747ea0d069e099a3a0 100644 (file)
@@ -32,7 +32,7 @@
 #include "DrawingArea.h"
 #include "LayerTreeHost.h"
 #include <WebCore/Region.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 namespace WebKit {
 
@@ -124,8 +124,8 @@ private:
     // won't paint until painting has resumed again.
     bool m_isPaintingSuspended;
 
-    WebCore::RunLoop::Timer<CoordinatedDrawingArea> m_displayTimer;
-    WebCore::RunLoop::Timer<CoordinatedDrawingArea> m_exitCompositingTimer;
+    RunLoop::Timer<CoordinatedDrawingArea> m_displayTimer;
+    RunLoop::Timer<CoordinatedDrawingArea> m_exitCompositingTimer;
 
     // The layer tree host that handles accelerated compositing.
     RefPtr<LayerTreeHost> m_layerTreeHost;
index 3e5a890aa0bdeeb4c83a6399018068005f10b041..1b13ed075e00ea73c6420d3e18835a5ca0f3fd14 100644 (file)
@@ -29,7 +29,7 @@
 #include "DrawingArea.h"
 #include "LayerTreeHost.h"
 #include <WebCore/Region.h>
-#include <WebCore/RunLoop.h>
+#include <wtf/RunLoop.h>
 
 namespace WebCore {
     class GraphicsContext;
@@ -127,8 +127,8 @@ private:
     bool m_isPaintingSuspended;
     bool m_alwaysUseCompositing;
 
-    WebCore::RunLoop::Timer<DrawingAreaImpl> m_displayTimer;
-    WebCore::RunLoop::Timer<DrawingAreaImpl> m_exitCompositingTimer;
+    RunLoop::Timer<DrawingAreaImpl> m_displayTimer;
+    RunLoop::Timer<DrawingAreaImpl> m_exitCompositingTimer;
 
     // The layer tree host that handles accelerated compositing.
     RefPtr<LayerTreeHost> m_layerTreeHost;
index 1c1e2145a11361cebe2c9fb7817bb7b107e6e6c4..7201787cb4c0104fadcfcc3bb732a0ebb782fdcb 100644 (file)
@@ -33,8 +33,8 @@
 #include "WebPageProxyMessages.h"
 #include "WebProcess.h"
 #include <WebCore/Page.h>
-#include <WebCore/RunLoop.h>
 #include <wtf/MainThread.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(THREADED_SCROLLING)
 #include <WebCore/ScrollingCoordinator.h>
index 896f12675818557e69520b36a9fb432a07da5889..61c6818dd6b5fbc0c5c9443669f8f99679dc7188 100644 (file)
@@ -28,8 +28,8 @@
 
 #include "APIObject.h"
 #include "WKBase.h"
-#include <WebCore/RunLoop.h>
 #include <wtf/PassRefPtr.h>
+#include <wtf/RunLoop.h>
 
 namespace WebCore {
     class GraphicsContext;
@@ -90,7 +90,7 @@ private:
     Client* m_client;
     WebPage* m_webPage;
 
-    WebCore::RunLoop::Timer<PageOverlay> m_fadeAnimationTimer;
+    RunLoop::Timer<PageOverlay> m_fadeAnimationTimer;
     double m_fadeAnimationStartTime;
     double m_fadeAnimationDuration;
 
index cb0c1533437b066b69f86507d4b2f2dd3b8aa666..d3fe05d8a39adbf5542a4f5de61720f34d050f61 100644 (file)
 #include <WebCore/ResourceBuffer.h>
 #include <WebCore/ResourceRequest.h>
 #include <WebCore/ResourceResponse.h>
-#include <WebCore/RunLoop.h>
 #include <WebCore/RuntimeEnabledFeatures.h>
 #include <WebCore/SchemeRegistry.h>
 #include <WebCore/ScriptController.h>
 #include <runtime/JSCJSValue.h>
 #include <runtime/JSLock.h>
 #include <runtime/Operations.h>
+#include <wtf/RunLoop.h>
 
 #if ENABLE(MHTML)
 #include <WebCore/MHTMLArchive.h>
index 86c51a331b787b2a83424a18fc2713d796e85a9b..0d47bf6ab47c5fde74104b742505ef656f61ffa7 100644 (file)
@@ -862,7 +862,7 @@ private:
     String m_primaryPlugInPageOrigin;
     String m_primaryPlugInOrigin;
     String m_primaryPlugInMimeType;
-    WebCore::RunLoop::Timer<WebPage> m_determinePrimarySnapshottedPlugInTimer;
+    RunLoop::Timer<WebPage> m_determinePrimarySnapshottedPlugInTimer;
 #endif
 
 #if PLATFORM(MAC)
@@ -901,8 +901,8 @@ private:
     RefPtr<PageBanner> m_headerBanner;
     RefPtr<PageBanner> m_footerBanner;
 
-    WebCore::RunLoop::Timer<WebPage> m_setCanStartMediaTimer;
-    WebCore::RunLoop::Timer<WebPage> m_sendDidUpdateViewStateTimer;
+    RunLoop::Timer<WebPage> m_setCanStartMediaTimer;
+    RunLoop::Timer<WebPage> m_sendDidUpdateViewStateTimer;
     bool m_mayStartMediaWhenInWindow;
 
     HashMap<uint64_t, RefPtr<WebUndoStep>> m_undoStepMap;
index c090f4455563a88bfd1e68098358ccb78abad3c2..3444347a8ba25c533e952605156b6f8c670f385a 100644 (file)
@@ -74,7 +74,6 @@
 #include <WebCore/PageCache.h>
 #include <WebCore/PageGroup.h>
 #include <WebCore/ResourceHandle.h>
-#include <WebCore/RunLoop.h>
 #include <WebCore/SchemeRegistry.h>
 #include <WebCore/SecurityOrigin.h>
 #include <WebCore/Settings.h>
@@ -83,6 +82,7 @@
 #include <wtf/CurrentTime.h>
 #include <wtf/HashCountedSet.h>
 #include <wtf/PassRefPtr.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/StringHash.h>
 
 #if ENABLE(NETWORK_INFO)
index 5b3480da4fda3bd3c84b01f37af5fed03add0e02..4d249dbd238a282287f117eb7ec331a6af4073fe 100644 (file)
 #include <WebCore/AuthenticationChallenge.h>
 #include <WebCore/NetworkingContext.h>
 #include <WebCore/ResourceHandle.h>
-#include <WebCore/RunLoop.h>
 #include <WebKit2/WebProcess.h>
 #include <libsoup/soup.h>
 #include <runtime/Operations.h>
 #include <unistd.h>
+#include <wtf/RunLoop.h>
 #include <wtf/text/CString.h>
 
 #ifdef HAVE_ECORE_X
index 54c8df3e0cbcec75d7092c2b2426ac7ff51c4ef8..b481ee34f23e3ab8afee4ebb52aeb50e0237533a 100644 (file)
 #include <WebCore/AuthenticationChallenge.h>
 #include <WebCore/NetworkingContext.h>
 #include <WebCore/ResourceHandle.h>
-#include <WebCore/RunLoop.h>
 #include <WebKit2/WebProcess.h>
 #include <gtk/gtk.h>
 #include <libintl.h>
 #include <libsoup/soup.h>
 #include <unistd.h>
+#include <wtf/RunLoop.h>
 #include <wtf/gobject/GOwnPtr.h>
 #include <wtf/gobject/GRefPtr.h>