Title: [213863] trunk/Source/WebKit2
Revision
213863
Author
[email protected]
Date
2017-03-13 13:08:04 -0700 (Mon, 13 Mar 2017)

Log Message

Fix more build warnings.

* UIProcess/mac/WKWebInspectorWKWebView.mm:
(WebKit::runOpenPanel):
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformSave):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (213862 => 213863)


--- trunk/Source/WebKit2/ChangeLog	2017-03-13 19:46:05 UTC (rev 213862)
+++ trunk/Source/WebKit2/ChangeLog	2017-03-13 20:08:04 UTC (rev 213863)
@@ -1,5 +1,14 @@
 2017-03-13  Anders Carlsson  <[email protected]>
 
+        Fix more build warnings.
+
+        * UIProcess/mac/WKWebInspectorWKWebView.mm:
+        (WebKit::runOpenPanel):
+        * UIProcess/mac/WebInspectorProxyMac.mm:
+        (WebKit::WebInspectorProxy::platformSave):
+
+2017-03-13  Anders Carlsson  <[email protected]>
+
         Fix build warnings.
 
         * UIProcess/mac/RemoteWebInspectorProxyMac.mm:

Modified: trunk/Source/WebKit2/UIProcess/mac/WKWebInspectorWKWebView.mm (213862 => 213863)


--- trunk/Source/WebKit2/UIProcess/mac/WKWebInspectorWKWebView.mm	2017-03-13 19:46:05 UTC (rev 213862)
+++ trunk/Source/WebKit2/UIProcess/mac/WKWebInspectorWKWebView.mm	2017-03-13 20:08:04 UTC (rev 213863)
@@ -81,7 +81,7 @@
     WKRetain(listener);
 
     auto completionHandler = ^(NSInteger result) {
-        if (result == NSFileHandlingPanelOKButton) {
+        if (result == NSModalResponseOK) {
             WKRetainPtr<WKMutableArrayRef> fileURLs = adoptWK(WKMutableArrayCreate());
 
             for (NSURL* nsURL in [openPanel URLs]) {

Modified: trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm (213862 => 213863)


--- trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2017-03-13 19:46:05 UTC (rev 213862)
+++ trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2017-03-13 20:08:04 UTC (rev 213863)
@@ -463,9 +463,9 @@
     panel.directoryURL = [platformURL URLByDeletingLastPathComponent];
 
     auto completionHandler = ^(NSInteger result) {
-        if (result == NSFileHandlingPanelCancelButton)
+        if (result == NSModalResponseCancel)
             return;
-        ASSERT(result == NSFileHandlingPanelOKButton);
+        ASSERT(result == NSModalResponseOK);
         saveToURL(panel.URL);
     };
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to