Changeset 116623 in webkit
- Timestamp:
- May 10, 2012 2:59:40 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116619 r116623 1 2012-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 1 21 2012-05-10 Alexander Pavlov <apavlov@chromium.org> 2 22 -
trunk/Source/WebCore/Modules/filesystem/EntryBase.cpp
r116388 r116623 55 55 } 56 56 57 KURLEntryBase::toURL() const57 String EntryBase::toURL() const 58 58 { 59 59 // Some filesystem type may not support toURL. 60 60 if (!m_fileSystem->supportsToURL()) 61 return KURL();61 return String(); 62 62 63 return m_fileSystem->createFileSystemURL(this) ;63 return m_fileSystem->createFileSystemURL(this).string(); 64 64 } 65 65 -
trunk/Source/WebCore/Modules/filesystem/EntryBase.h
r116273 r116623 34 34 #if ENABLE(FILE_SYSTEM) 35 35 36 #include "KURL.h"37 #include <wtf/PassRefPtr.h>38 36 #include <wtf/RefCounted.h> 37 #include <wtf/text/WTFString.h> 39 38 40 39 namespace WebCore { … … 56 55 const String& name() const { return m_name; } 57 56 58 KURLtoURL() const;57 String toURL() const; 59 58 60 59 protected:
Note: See TracChangeset
for help on using the changeset viewer.