Changeset 116623 in webkit


Ignore:
Timestamp:
May 10, 2012 2:59:40 AM (12 years ago)
Author:
kinuko@chromium.org
Message:

Change the return type of Entry.toURL() back to String from KURL
https://bugs.webkit.org/show_bug.cgi?id=85858

Reviewed by Ryosuke Niwa.

I once changed it from String to KURL in r116273 but it turned out that
it involves implicit conversion and may incur extra overhead.
This partly reverts r116273 while keeping some internal functions
returning KURL as it's what we initially create as and is more
convenient to operate on.

No new tests; no functional or visible changes.

  • Modules/filesystem/EntryBase.cpp:

(WebCore::EntryBase::toURL):

  • Modules/filesystem/EntryBase.h:

(EntryBase):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116619 r116623  
     12012-05-10  Kinuko Yasuda  <kinuko@chromium.org>
     2
     3        Change the return type of Entry.toURL() back to String from KURL
     4        https://bugs.webkit.org/show_bug.cgi?id=85858
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        I once changed it from String to KURL in r116273 but it turned out that
     9        it involves implicit conversion and may incur extra overhead.
     10        This partly reverts r116273 while keeping some internal functions
     11        returning KURL as it's what we initially create as and is more
     12        convenient to operate on.
     13
     14        No new tests; no functional or visible changes.
     15
     16        * Modules/filesystem/EntryBase.cpp:
     17        (WebCore::EntryBase::toURL):
     18        * Modules/filesystem/EntryBase.h:
     19        (EntryBase):
     20
    1212012-05-10  Alexander Pavlov  <apavlov@chromium.org>
    222
  • trunk/Source/WebCore/Modules/filesystem/EntryBase.cpp

    r116388 r116623  
    5555}
    5656
    57 KURL EntryBase::toURL() const
     57String EntryBase::toURL() const
    5858{
    5959    // Some filesystem type may not support toURL.
    6060    if (!m_fileSystem->supportsToURL())
    61         return KURL();
     61        return String();
    6262
    63     return m_fileSystem->createFileSystemURL(this);
     63    return m_fileSystem->createFileSystemURL(this).string();
    6464}
    6565
  • trunk/Source/WebCore/Modules/filesystem/EntryBase.h

    r116273 r116623  
    3434#if ENABLE(FILE_SYSTEM)
    3535
    36 #include "KURL.h"
    37 #include <wtf/PassRefPtr.h>
    3836#include <wtf/RefCounted.h>
     37#include <wtf/text/WTFString.h>
    3938
    4039namespace WebCore {
     
    5655    const String& name() const { return m_name; }
    5756
    58     KURL toURL() const;
     57    String toURL() const;
    5958
    6059protected:
Note: See TracChangeset for help on using the changeset viewer.