Diff
Modified: trunk/Source/WebCore/ChangeLog (212342 => 212343)
--- trunk/Source/WebCore/ChangeLog 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/ChangeLog 2017-02-15 05:19:57 UTC (rev 212343)
@@ -1,3 +1,22 @@
+2017-02-14 Aakash Jain <aakash_j...@apple.com>
+
+ Move methods from WebCoreThread.h to WebCoreThreadInternal.h
+ https://bugs.webkit.org/show_bug.cgi?id=168326
+
+ Reviewed by Alexey Proskuryakov.
+
+ * platform/ios/wak/WebCoreThread.h: Move methods WebThreadRunLoop and WebThreadCurrentContext to WebCoreThreadInternal.h
+ * platform/ios/wak/WebCoreThreadInternal.h: Ditto.
+ * platform/ios/wak/WebCoreThreadRun.cpp: Removed WebCoreThread.h as it is already included by WebCoreThreadInternal.h
+ * platform/ios/wak/WKGraphics.mm: Included WebCoreThreadInternal.h, it subsequently includes WebCoreThread.h
+ * inspector/InspectorTimelineAgent.cpp: Ditto.
+ * page/mac/PageMac.mm: Ditto.
+ * platform/cf/MainThreadSharedTimerCF.cpp: Ditto.
+ * platform/cocoa/MemoryPressureHandlerCocoa.mm: Ditto.
+ * platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp: Ditto.
+ * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp: Ditto.
+ * bindings/js/CommonVM.cpp: included WebCoreThreadInternal.h
+
2017-02-14 Wenson Hsieh <wenson_hs...@apple.com>
[WK2] Support data interaction on links
Modified: trunk/Source/WebCore/bindings/js/CommonVM.cpp (212342 => 212343)
--- trunk/Source/WebCore/bindings/js/CommonVM.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/bindings/js/CommonVM.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -34,6 +34,10 @@
#include <wtf/MainThread.h>
#include <wtf/text/AtomicString.h>
+#if PLATFORM(IOS)
+#include "WebCoreThreadInternal.h"
+#endif
+
using namespace JSC;
namespace WebCore {
Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp (212342 => 212343)
--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -53,7 +53,7 @@
#if PLATFORM(IOS)
#include "RuntimeApplicationChecks.h"
-#include "WebCoreThread.h"
+#include "WebCoreThreadInternal.h"
#endif
#if PLATFORM(COCOA)
Modified: trunk/Source/WebCore/page/mac/PageMac.mm (212342 => 212343)
--- trunk/Source/WebCore/page/mac/PageMac.mm 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/page/mac/PageMac.mm 2017-02-15 05:19:57 UTC (rev 212343)
@@ -37,7 +37,7 @@
#import "RenderObject.h"
#if PLATFORM(IOS)
-#import "WebCoreThread.h"
+#import "WebCoreThreadInternal.h"
#endif
namespace WebCore {
Modified: trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp (212342 => 212343)
--- trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -31,7 +31,7 @@
#if PLATFORM(MAC)
#import "PowerObserverMac.h"
#elif PLATFORM(IOS)
-#import "WebCoreThread.h"
+#import "WebCoreThreadInternal.h"
#import "WebCoreThreadRun.h"
#endif
Modified: trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm (212342 => 212343)
--- trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2017-02-15 05:19:57 UTC (rev 212343)
@@ -36,7 +36,7 @@
#if PLATFORM(IOS)
#import "GraphicsServicesSPI.h"
#import "SystemMemory.h"
-#import "WebCoreThread.h"
+#import "WebCoreThreadInternal.h"
#endif
#define ENABLE_FMW_FOOTPRINT_COMPARISON 0
Modified: trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp (212342 => 212343)
--- trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -30,7 +30,7 @@
#if PLATFORM(IOS)
#include "RuntimeApplicationChecks.h"
-#include "WebCoreThread.h"
+#include "WebCoreThreadInternal.h"
#include <CoreFoundation/CFBundle.h>
#endif
Modified: trunk/Source/WebCore/platform/ios/wak/WKGraphics.mm (212342 => 212343)
--- trunk/Source/WebCore/platform/ios/wak/WKGraphics.mm 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/ios/wak/WKGraphics.mm 2017-02-15 05:19:57 UTC (rev 212343)
@@ -32,7 +32,7 @@
#import "CoreGraphicsSPI.h"
#import "FontCascade.h"
#import "PlatformScreen.h"
-#import "WebCoreThread.h"
+#import "WebCoreThreadInternal.h"
#import <ImageIO/ImageIO.h>
#import <wtf/StdLibExtras.h>
Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThread.h (212342 => 212343)
--- trunk/Source/WebCore/platform/ios/wak/WebCoreThread.h 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThread.h 2017-02-15 05:19:57 UTC (rev 212343)
@@ -85,9 +85,7 @@
static inline bool WebThreadShouldYield(void) { return webThreadShouldYield; }
static inline void WebThreadSetShouldYield() { webThreadShouldYield = true; }
-CFRunLoopRef WebThreadRunLoop(void);
WEBCORE_EXPORT NSRunLoop* WebThreadNSRunLoop(void);
-WebThreadContext *WebThreadCurrentContext(void);
WEBCORE_EXPORT void WebThreadSetDelegateSourceRunLoopMode(CFStringRef mode);
Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThreadInternal.h (212342 => 212343)
--- trunk/Source/WebCore/platform/ios/wak/WebCoreThreadInternal.h 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThreadInternal.h 2017-02-15 05:19:57 UTC (rev 212343)
@@ -42,6 +42,9 @@
void WebThreadInitRunQueue();
+CFRunLoopRef WebThreadRunLoop(void);
+WebThreadContext *WebThreadCurrentContext(void);
+
#if defined(__cplusplus)
} // extern "C"
#endif
Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThreadRun.cpp (212342 => 212343)
--- trunk/Source/WebCore/platform/ios/wak/WebCoreThreadRun.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThreadRun.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -28,7 +28,6 @@
#if PLATFORM(IOS)
-#include "WebCoreThread.h"
#include "WebCoreThreadInternal.h"
#include <mutex>
#include <wtf/Condition.h>
Modified: trunk/Source/WebCore/platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp (212342 => 212343)
--- trunk/Source/WebCore/platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp 2017-02-15 05:05:47 UTC (rev 212342)
+++ trunk/Source/WebCore/platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp 2017-02-15 05:19:57 UTC (rev 212343)
@@ -47,7 +47,7 @@
#endif // PLATFORM(COCOA)
#if PLATFORM(IOS)
-#include "WebCoreThread.h"
+#include "WebCoreThreadInternal.h"
#endif // PLATFORM(IOS)
#if PLATFORM(WIN)