summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/API/c/WKURL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/API/c/WKURL.cpp')
-rw-r--r--Source/WebKit2/Shared/API/c/WKURL.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebKit2/Shared/API/c/WKURL.cpp b/Source/WebKit2/Shared/API/c/WKURL.cpp
index 24c555dc0..f1a1ea546 100644
--- a/Source/WebKit2/Shared/API/c/WKURL.cpp
+++ b/Source/WebKit2/Shared/API/c/WKURL.cpp
@@ -32,17 +32,17 @@ using namespace WebKit;
WKTypeID WKURLGetTypeID()
{
- return toAPI(WebURL::APIType);
+ return toAPI(API::URL::APIType);
}
WKURLRef WKURLCreateWithUTF8CString(const char* string)
{
- return toAPI(WebURL::create(String::fromUTF8(string)).leakRef());
+ return toAPI(&API::URL::create(String::fromUTF8(string)).leakRef());
}
WKURLRef WKURLCreateWithBaseURL(WKURLRef baseURL, const char* relative)
{
- return toAPI(WebURL::create(toImpl(baseURL), String::fromUTF8(relative)).leakRef());
+ return toAPI(&API::URL::create(toImpl(baseURL), String::fromUTF8(relative)).leakRef());
}
WKStringRef WKURLCopyString(WKURLRef url)
@@ -52,7 +52,7 @@ WKStringRef WKURLCopyString(WKURLRef url)
bool WKURLIsEqual(WKURLRef a, WKURLRef b)
{
- return toImpl(a)->string() == toImpl(b)->string();
+ return API::URL::equals(*toImpl(a), *toImpl(b));
}
WKStringRef WKURLCopyHostName(WKURLRef url)