Commit 48fa4212 authored by zandobersek@gmail.com's avatar zandobersek@gmail.com

Make KURL::hasPath private

https://bugs.webkit.org/show_bug.cgi?id=118279

Reviewed by Darin Adler.

Source/WebCore: 

* platform/KURL.h: The KURL::hasPath method is not used outside of the KURL class, so it is made private.

Tools: 

* TestWebKitAPI/Tests/WebCore/KURL.cpp:
(TestWebKitAPI::TEST_F): Remove references to KURL::hasPath the method is now private and thus not accessible for testing.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 98e1cb89
2013-07-24 Zan Dobersek <zdobersek@igalia.com>
Make KURL::hasPath private
https://bugs.webkit.org/show_bug.cgi?id=118279
Reviewed by Darin Adler.
* platform/KURL.h: The KURL::hasPath method is not used outside of the KURL class, so it is made private.
2013-07-24 Jessie Berlin <jberlin@apple.com>
Remove WKPageGetPlugInInformation - it is not used anymore
......@@ -89,11 +89,6 @@ public:
bool isEmpty() const;
bool isValid() const;
// Returns true if this URL has a path. Note that "http://foo.com/" has a
// path of "/", so this function will return true. Only invalid or
// non-hierarchical (like "javascript:") URLs will have no path.
bool hasPath() const;
// Returns true if you can set the host and port for the URL.
// Non-hierarchical URLs don't have a host and port.
bool canSetHostOrPort() const { return isHierarchical(); }
......@@ -204,6 +199,8 @@ private:
void parse(const String&);
void parse(const char* url, const String* originalString = 0);
bool hasPath() const;
String m_string;
bool m_isValid : 1;
bool m_protocolIsInHTTPFamily : 1;
......
2013-07-24 Zan Dobersek <zdobersek@igalia.com>
Make KURL::hasPath private
https://bugs.webkit.org/show_bug.cgi?id=118279
Reviewed by Darin Adler.
* TestWebKitAPI/Tests/WebCore/KURL.cpp:
(TestWebKitAPI::TEST_F): Remove references to KURL::hasPath the method is now private and thus not accessible for testing.
2013-07-24 Anton Obzhirov <a.obzhirov@samsung.com>
[GTK] TestInspectorServer unit test is timing out
......
......@@ -44,7 +44,6 @@ TEST_F(KURLTest, KURLConstructorDefault)
{
KURL kurl;
EXPECT_FALSE(kurl.hasPath());
EXPECT_TRUE(kurl.isEmpty());
EXPECT_TRUE(kurl.isNull());
EXPECT_FALSE(kurl.isValid());
......@@ -54,7 +53,6 @@ TEST_F(KURLTest, KURLConstructorConstChar)
{
KURL kurl(ParsedURLString, "http://username:password@www.example.com:8080/index.html?var=val#fragment");
EXPECT_TRUE(kurl.hasPath());
EXPECT_FALSE(kurl.isEmpty());
EXPECT_FALSE(kurl.isNull());
EXPECT_TRUE(kurl.isValid());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment