Changeset 147883 in webkit


Ignore:
Timestamp:
Apr 7, 2013 3:18:48 PM (11 years ago)
Author:
Patrick Gansterer
Message:

Add default implementation for KURL::fileSystemPath()
https://bugs.webkit.org/show_bug.cgi?id=108326

Reviewed by Benjamin Poulain.

The code for KURL::fileSystemPath() has been duplicated in different ports.
Add an implementation of this function to KURL.cpp for this ports and
get rid of the very similar port specific implementation files.

  • PlatformBlackBerry.cmake:
  • PlatformEfl.cmake:
  • PlatformWinCE.cmake:
  • platform/KURL.cpp:

(WebCore):
(WebCore::KURL::fileSystemPath):

  • platform/blackberry/KURLBlackBerry.cpp: Removed.
  • platform/efl/KURLEfl.cpp: Removed.
  • platform/wince/KURLWinCE.cpp: Removed.
  • platform/wx/KURLWx.cpp: Removed.
Location:
trunk/Source/WebCore
Files:
4 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147879 r147883  
     12013-04-07  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Add default implementation for KURL::fileSystemPath()
     4        https://bugs.webkit.org/show_bug.cgi?id=108326
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        The code for KURL::fileSystemPath() has been duplicated in different ports.
     9        Add an implementation of this function to KURL.cpp for this ports and
     10        get rid of the very similar port specific implementation files.
     11
     12        * PlatformBlackBerry.cmake:
     13        * PlatformEfl.cmake:
     14        * PlatformWinCE.cmake:
     15        * platform/KURL.cpp:
     16        (WebCore):
     17        (WebCore::KURL::fileSystemPath):
     18        * platform/blackberry/KURLBlackBerry.cpp: Removed.
     19        * platform/efl/KURLEfl.cpp: Removed.
     20        * platform/wince/KURLWinCE.cpp: Removed.
     21        * platform/wx/KURLWx.cpp: Removed.
     22
    1232013-04-07  Patrick Gansterer  <paroga@webkit.org>
    224
  • trunk/Source/WebCore/PlatformBlackBerry.cmake

    r147879 r147883  
    110110    platform/blackberry/DragImageBlackBerry.cpp
    111111    platform/blackberry/EventLoopBlackBerry.cpp
    112     platform/blackberry/KURLBlackBerry.cpp
    113112    platform/blackberry/LocalizedStringsBlackBerry.cpp
    114113    platform/blackberry/LoggingBlackBerry.cpp
  • trunk/Source/WebCore/PlatformEfl.cmake

    r147643 r147883  
    6666    platform/efl/FileSystemEfl.cpp
    6767    platform/efl/GamepadsEfl.cpp
    68     platform/efl/KURLEfl.cpp
    6968    platform/efl/LanguageEfl.cpp
    7069    platform/efl/LocalizedStringsEfl.cpp
  • trunk/Source/WebCore/PlatformWinCE.cmake

    r147834 r147883  
    6565
    6666    platform/wince/FileSystemWince.cpp
    67     platform/wince/KURLWince.cpp
    6867
    6968    platform/network/NetworkStorageSessionStub.cpp
  • trunk/Source/WebCore/platform/KURL.cpp

    r147766 r147883  
    632632}
    633633
     634#if !PLATFORM(GTK) && !PLATFORM(QT) && !USE(CF)
     635String KURL::fileSystemPath() const
     636{
     637    if (!isValid() || !isLocalFile())
     638        return String();
     639
     640    return decodeURLEscapeSequences(path());
     641}
     642#endif
     643
    634644#ifdef NDEBUG
    635645
Note: See TracChangeset for help on using the changeset viewer.