[Cocoa] Avoid some double-wrapping of strings and URLs
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Nov 2013 21:26:50 +0000 (21:26 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Nov 2013 21:26:50 +0000 (21:26 +0000)
commit7ce04fabb28c46cc9ee739cc83e0aae86ceb0f40
tree2bd1b549c32a8249be2c53ccfff66157ad07dcbb
parent2e2d2385829e13b75c1062efbc9c18c5958a357d
[Cocoa] Avoid some double-wrapping of strings and URLs
https://bugs.webkit.org/show_bug.cgi?id=123632

Reviewed by Anders Carlsson.

* Shared/API/c/cf/WKStringCF.cpp: Removed.
* Shared/API/c/cf/WKStringCF.mm: Copied from Source/WebKit2/Shared/API/c/cf/WKStringCF.cpp.
(wkNSStringClass): Added this helper.
(WKStringCreateWithCFString): If the passed-in CFString is already wrapping a WebString,
then retain it and return it.
* Shared/API/c/cf/WKURLCF.cpp: Removed.
* Shared/API/c/cf/WKURLCF.mm: Copied from Source/WebKit2/Shared/API/c/cf/WKURLCF.cpp.
(wkNSURLClass): Added this helper.
(WKURLCreateWithCFURL): If the passed-in CFURL is already wrapping a WebURL, then retain it
and return it.
* WebKit2.xcodeproj/project.pbxproj: Updated for renames.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/c/cf/WKStringCF.mm [moved from Source/WebKit2/Shared/API/c/cf/WKStringCF.cpp with 76% similarity]
Source/WebKit2/Shared/API/c/cf/WKURLCF.mm [moved from Source/WebKit2/Shared/API/c/cf/WKURLCF.cpp with 77% similarity]
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj