Move URL from WebCore to WTF
[WebKit-https.git] / Source / WebKit / WebProcess / WebCoreSupport / mac / WebDragClientMac.mm
index 63b4f50..ffee2a6 100644 (file)
@@ -48,8 +48,8 @@
 #import <WebCore/Pasteboard.h>
 #import <WebCore/RenderImage.h>
 #import <WebCore/StringTruncator.h>
-#import <WebCore/WebCoreNSURLExtras.h>
 #import <wtf/StdLibExtras.h>
+#import <wtf/cocoa/NSURLExtras.h>
 
 #if PLATFORM(IOS_FAMILY)
 #import "UIKitSPI.h"
@@ -129,7 +129,7 @@ void WebDragClient::declareAndWriteDragImage(const String& pasteboardName, Eleme
     if (title.isEmpty()) {
         title = url.lastPathComponent();
         if (title.isEmpty())
-            title = userVisibleString((NSURL *)url);
+            title = WTF::userVisibleString(url);
     }
 
     RefPtr<LegacyWebArchive> archive = LegacyWebArchive::create(element);
@@ -166,7 +166,7 @@ void WebDragClient::declareAndWriteDragImage(const String& pasteboardName, Eleme
             filename = downloadFilename;
     }
 
-    m_page->send(Messages::WebPageProxy::SetPromisedDataForImage(pasteboardName, imageHandle, imageSize, filename, extension, title, String([[response URL] absoluteString]), userVisibleString((NSURL *)url), archiveHandle, archiveSize));
+    m_page->send(Messages::WebPageProxy::SetPromisedDataForImage(pasteboardName, imageHandle, imageSize, filename, extension, title, String([[response URL] absoluteString]), WTF::userVisibleString(url), archiveHandle, archiveSize));
 }
 
 #endif // PLATFORM(MAC)