Title: [186118] trunk/Source
Revision
186118
Author
[email protected]
Date
2015-06-30 10:12:00 -0700 (Tue, 30 Jun 2015)

Log Message

Get rid of unused WKSI functions
https://bugs.webkit.org/show_bug.cgi?id=146443

Reviewed by Tim Horton.

Source/WebCore:

* platform/graphics/cg/PathCG.cpp:
(WebCore::Path::platformAddPathForRoundedRect):
Just call CGPathAddRoundedRect directly.

* platform/ios/WebCoreSystemInterfaceIOS.mm:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Deleted.

Source/WebKit2:

* UIProcess/API/Cocoa/WKWebView.mm:
* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Deleted.
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::nonVisibleProcessCleanupTimerFired):
* WebProcess/WebProcess.h:
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::destroyRenderingResources):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (186117 => 186118)


--- trunk/Source/WebCore/ChangeLog	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebCore/ChangeLog	2015-06-30 17:12:00 UTC (rev 186118)
@@ -1,3 +1,18 @@
+2015-06-29  Anders Carlsson  <[email protected]>
+
+        Get rid of unused WKSI functions
+        https://bugs.webkit.org/show_bug.cgi?id=146443
+
+        Reviewed by Tim Horton.
+
+        * platform/graphics/cg/PathCG.cpp:
+        (WebCore::Path::platformAddPathForRoundedRect):
+        Just call CGPathAddRoundedRect directly.
+
+        * platform/ios/WebCoreSystemInterfaceIOS.mm:
+        * platform/mac/WebCoreSystemInterface.h:
+        * platform/mac/WebCoreSystemInterface.mm:
+
 2015-06-30  Youenn Fablet  <[email protected]> and Xabier Rodriguez Calvar  <[email protected]>
 
         [Streams API] Finish pulling must always be done asynchronously as it is the expected promise behavior (according to the spec)

Modified: trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp (186117 => 186118)


--- trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp	2015-06-30 17:12:00 UTC (rev 186118)
@@ -275,7 +275,7 @@
             radiusWidth = rectWidth / 2 - std::numeric_limits<CGFloat>::epsilon();
         if (rectHeight < 2 * radiusHeight)
             radiusHeight = rectHeight / 2 - std::numeric_limits<CGFloat>::epsilon();
-        wkCGPathAddRoundedRect(ensurePlatformPath(), 0, rectToDraw, radiusWidth, radiusHeight);
+        CGPathAddRoundedRect(ensurePlatformPath(), nullptr, rectToDraw, radiusWidth, radiusHeight);
         return;
     }
 #endif

Modified: trunk/Source/WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm (186117 => 186118)


--- trunk/Source/WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebCore/platform/ios/WebCoreSystemInterfaceIOS.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -58,7 +58,6 @@
 WEBCORE_EXPORT void (*wkSetLayerContentsScale)(CALayer *);
 WEBCORE_EXPORT float (*wkGetScreenScaleFactor)(void);
 WEBCORE_EXPORT bool (*wkIsGB18030ComplianceRequired)(void);
-WEBCORE_EXPORT void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);
 WEBCORE_EXPORT void (*wkCFURLRequestAllowAllPostCaching)(CFURLRequestRef);
 WEBCORE_EXPORT CFArrayRef (*wkCopyNSURLResponseCertificateChain)(NSURLResponse*);
 WEBCORE_EXPORT CFStringEncoding (*wkGetWebDefaultCFStringEncoding)(void);

Modified: trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h (186117 => 186118)


--- trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h	2015-06-30 17:12:00 UTC (rev 186118)
@@ -222,8 +222,6 @@
 #endif
 
 #if !PLATFORM(IOS)
-extern int (*wkRecommendedScrollerStyle)(void);
-
 extern bool (*wkExecutableWasLinkedOnOrBeforeSnowLeopard)(void);
 
 extern CFStringRef (*wkCopyDefaultSearchProviderDisplayName)(void);
@@ -274,8 +272,6 @@
 extern CFStringRef (*wkCopyCFURLResponseSuggestedFilename)(CFURLResponseRef);
 extern void (*wkSetCFURLResponseMIMEType)(CFURLResponseRef, CFStringRef mimeType);
 
-extern void(*wkDestroyRenderingResources)(void);
-
 #if USE(CFNETWORK)
 extern CFHTTPCookieStorageRef (*wkGetDefaultHTTPCookieStorage)();
 extern WKCFURLCredentialRef (*wkCopyCredentialFromCFPersistentStorage)(CFURLProtectionSpaceRef protectionSpace);
@@ -286,12 +282,6 @@
 extern void (*wkSetMetadataURL)(NSString *urlString, NSString *referrer, NSString *path);
 #endif
 
-#if !PLATFORM(IOS)
-extern bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
-#endif
-
-extern void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);
-
 extern void (*wkCFURLRequestAllowAllPostCaching)(CFURLRequestRef);
 
 #if !PLATFORM(IOS)

Modified: trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm (186117 => 186118)


--- trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -102,8 +102,6 @@
 
 void* wkGetHyphenationLocationBeforeIndex;
 
-int (*wkRecommendedScrollerStyle)(void);
-
 bool (*wkExecutableWasLinkedOnOrBeforeSnowLeopard)(void);
 
 CFStringRef (*wkCopyDefaultSearchProviderDisplayName)(void);
@@ -142,18 +140,6 @@
 void (*wkSetCFURLResponseMIMEType)(CFURLResponseRef, CFStringRef mimeType);
 void (*wkSetMetadataURL)(NSString *urlString, NSString *referrer, NSString *path);
 
-void(*wkDestroyRenderingResources)(void);
-
-dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void);
-
-#if PLATFORM(MAC)
-dispatch_source_t (*wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue)(void);
-#endif
-
-bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
-
-void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);
-
 void (*wkCFURLRequestAllowAllPostCaching)(CFURLRequestRef);
 
 #if !PLATFORM(IOS)

Modified: trunk/Source/WebKit/mac/ChangeLog (186117 => 186118)


--- trunk/Source/WebKit/mac/ChangeLog	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit/mac/ChangeLog	2015-06-30 17:12:00 UTC (rev 186118)
@@ -1,3 +1,13 @@
+2015-06-29  Anders Carlsson  <[email protected]>
+
+        Get rid of unused WKSI functions
+        https://bugs.webkit.org/show_bug.cgi?id=146443
+
+        Reviewed by Tim Horton.
+
+        * WebCoreSupport/WebSystemInterface.mm:
+        (InitWebCoreSystemInterface): Deleted.
+
 2015-06-29  Dean Jackson  <[email protected]>
 
         Temporarily disable PICTURE_SIZES

Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm (186117 => 186118)


--- trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -128,7 +128,6 @@
 #endif
 
 #if !PLATFORM(IOS)
-    INIT(RecommendedScrollerStyle);
     INIT(ExecutableWasLinkedOnOrBeforeSnowLeopard);
     INIT(CopyDefaultSearchProviderDisplayName);
     INIT(Cursor);
@@ -175,14 +174,6 @@
     INIT(SetMetadataURL);
 #endif
 
-    INIT(DestroyRenderingResources);
-
-#if !PLATFORM(IOS)
-    INIT(ExecutableWasLinkedOnOrBeforeLion);
-#endif
-
-    INIT(CGPathAddRoundedRect);
-
     INIT(CFURLRequestAllowAllPostCaching);
 
 #if PLATFORM(IOS)

Modified: trunk/Source/WebKit2/ChangeLog (186117 => 186118)


--- trunk/Source/WebKit2/ChangeLog	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/ChangeLog	2015-06-30 17:12:00 UTC (rev 186118)
@@ -1,3 +1,19 @@
+2015-06-29  Anders Carlsson  <[email protected]>
+
+        Get rid of unused WKSI functions
+        https://bugs.webkit.org/show_bug.cgi?id=146443
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
+        (InitWebCoreSystemInterface): Deleted.
+        * WebProcess/WebProcess.cpp:
+        (WebKit::WebProcess::nonVisibleProcessCleanupTimerFired):
+        * WebProcess/WebProcess.h:
+        * WebProcess/cocoa/WebProcessCocoa.mm:
+        (WebKit::WebProcess::destroyRenderingResources):
+
 2015-06-29  Gyuyoung Kim  <[email protected]>
 
         [GTK] Unreviewed GTK build fix since r186088 and r186095.

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (186117 => 186118)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -79,7 +79,6 @@
 #import <_javascript_Core/JSContext.h>
 #import <_javascript_Core/JSValue.h>
 #import <WebCore/IOSurface.h>
-#import <WebCore/WebCoreSystemInterface.h>
 #import <wtf/HashMap.h>
 #import <wtf/MathExtras.h>
 #import <wtf/NeverDestroyed.h>

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm (186117 => 186118)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -120,7 +120,6 @@
 #endif // !PLATFORM(IOS)
 
 #if !PLATFORM(IOS)
-        INIT(RecommendedScrollerStyle);
         INIT(ExecutableWasLinkedOnOrBeforeSnowLeopard);
         INIT(CopyDefaultSearchProviderDisplayName);
         INIT(Cursor);
@@ -156,13 +155,6 @@
         INIT(CopyCFURLResponseSuggestedFilename);
         INIT(SetCFURLResponseMIMEType);
 
-        INIT(DestroyRenderingResources);
-
-#if PLATFORM(MAC)
-        INIT(ExecutableWasLinkedOnOrBeforeLion);
-#endif
-
-        INIT(CGPathAddRoundedRect);
         INIT(CFURLRequestAllowAllPostCaching);
 
 #if PLATFORM(IOS)

Modified: trunk/Source/WebKit2/WebProcess/WebProcess.cpp (186117 => 186118)


--- trunk/Source/WebKit2/WebProcess/WebProcess.cpp	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.cpp	2015-06-30 17:12:00 UTC (rev 186118)
@@ -1311,9 +1311,7 @@
     if (!m_pagesInWindows.isEmpty())
         return;
 
-#if PLATFORM(COCOA)
-    wkDestroyRenderingResources();
-#endif
+    destroyRenderingResources();
 }
 
 RefPtr<API::Object> WebProcess::transformHandlesToObjects(API::Object* object)

Modified: trunk/Source/WebKit2/WebProcess/WebProcess.h (186117 => 186118)


--- trunk/Source/WebKit2/WebProcess/WebProcess.h	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.h	2015-06-30 17:12:00 UTC (rev 186118)
@@ -177,6 +177,7 @@
     void pageWillLeaveWindow(uint64_t pageID);
 
     void nonVisibleProcessCleanupTimerFired();
+    void destroyRenderingResources();
 
     void updateActivePages();
 

Modified: trunk/Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm (186117 => 186118)


--- trunk/Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm	2015-06-30 16:39:48 UTC (rev 186117)
+++ trunk/Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm	2015-06-30 17:12:00 UTC (rev 186118)
@@ -335,4 +335,9 @@
     return ObjCObjectGraph::create(ObjCObjectGraph::transform(objectGraph.rootObject(), Transformer()).get());
 }
 
+void WebProcess::destroyRenderingResources()
+{
+    WKDestroyRenderingResources();
+}
+
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to