Changeset 108011 in webkit
- Timestamp:
- Feb 16, 2012 6:08:15 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r108010 r108011 1 2012-02-16 Leo Yang <leo.yang@torchmobile.com.cn> 2 3 [BlackBerry] Adapt to the removal of WebStringIml.h 4 https://bugs.webkit.org/show_bug.cgi?id=78784 5 6 Reviewed by Antonio Gomes. 7 8 WebKit/blackberry/WebCoreSupport/WebStringImpl.h which hasn't been upstreamed 9 has been removed internally. We should adapt to this removal for the 10 upstreamed part of the BlackBerry port. Actually WebStringImpl is not necessary 11 because it just inherits from WTF::StringImpl but adding nothing. 12 13 No functionalities changed, no new tests. 14 15 * platform/text/blackberry/StringBlackBerry.cpp: 16 (WTF::String::operator WebString): 17 1 18 2012-02-15 Geoffrey Garen <ggaren@apple.com> 2 19 -
trunk/Source/WebCore/platform/text/blackberry/StringBlackBerry.cpp
r101159 r108011 21 21 22 22 #include "WebString.h" 23 #include "WebStringImpl.h"24 23 25 24 using BlackBerry::WebKit::WebString; 26 using BlackBerry::WebKit::WebStringImpl;27 25 28 26 namespace WTF { … … 35 33 String::operator WebString() const 36 34 { 37 WebString webString( static_cast<WebStringImpl*>(m_impl.get()));35 WebString webString(m_impl.get()); 38 36 return webString; 39 37 } -
trunk/Source/WebKit/ChangeLog
r107946 r108011 1 2012-02-16 Leo Yang <leo.yang@torchmobile.com.cn> 2 3 [BlackBerry] Adapt to the removal of WebStringIml.h 4 https://bugs.webkit.org/show_bug.cgi?id=78784 5 6 Reviewed by Antonio Gomes. 7 8 blackberry/WebCoreSupport/WebStringImpl.h which hasn't been upstreamed 9 has been removed internally. We should adapt to this removal for the 10 upstreamed part of the BlackBerry port. Actually WebStringImpl is not necessary 11 because it just inherits from WTF::StringImpl but adding nothing. 12 13 * blackberry/Api/WebString.cpp: 14 (BlackBerry::WebKit::WebString::WebString): 15 (BlackBerry::WebKit::WebString::equalIgnoringCase): 16 * blackberry/Api/WebString.h: 17 (WTF): 18 1 19 2012-02-16 Nima Ghanavatian <nghanavatian@rim.com> 2 20 -
trunk/Source/WebKit/blackberry/Api/WebString.cpp
r102747 r108011 20 20 #include "WebString.h" 21 21 22 #include "WebStringImpl.h"23 22 #include <wtf/text/CString.h> 24 23 #include <wtf/text/WTFString.h> … … 28 27 29 28 WebString::WebString(const char* latin1) 30 : m_impl( static_cast<WebStringImpl*>(WTF::StringImpl::create(latin1).releaseRef()))29 : m_impl(StringImpl::create(latin1).leakRef()) 31 30 { 32 31 } 33 32 34 33 WebString::WebString(const char* latin1, unsigned length) 35 : m_impl( static_cast<WebStringImpl*>(WTF::StringImpl::create(latin1, length).releaseRef()))34 : m_impl(StringImpl::create(latin1, length).leakRef()) 36 35 { 37 36 } 38 37 39 38 WebString::WebString(const unsigned short* utf16, unsigned length) 40 : m_impl( static_cast<WebStringImpl*>(WTF::StringImpl::create(utf16, length).releaseRef()))39 : m_impl(StringImpl::create(utf16, length).leakRef()) 41 40 { 42 41 } 43 42 44 WebString::WebString( WebStringImpl* impl)43 WebString::WebString(StringImpl* impl) 45 44 : m_impl(impl) 46 45 { … … 110 109 bool WebString::equalIgnoringCase(const char* utf8) const 111 110 { 112 return WTF::equalIgnoringCase( m_impl, utf8);111 return WTF::equalIgnoringCase(utf8, WTF::String(m_impl)); 113 112 } 114 113 -
trunk/Source/WebKit/blackberry/Api/WebString.h
r102747 r108011 23 23 #include <string> 24 24 25 // Not for public API purpose. 26 namespace WTF { 27 class StringImpl; 28 } 29 25 30 namespace BlackBerry { 26 31 namespace WebKit { 27 28 class WebStringImpl;29 32 30 33 class BLACKBERRY_EXPORT WebString { … … 35 38 WebString(const char* latin1, unsigned length); 36 39 WebString(const unsigned short* utf16, unsigned length); 37 WebString(WebStringImpl*);38 40 WebString(const WebString&); 39 41 WebString& operator=(const WebString&); … … 45 47 bool equal(const char* utf8) const; 46 48 bool equalIgnoringCase(const char* utf8) const; 47 WebStringImpl* impl() const { return m_impl; } 49 50 // Not for public API purpose. 51 WebString(WTF::StringImpl*); 52 WTF::StringImpl* impl() const { return m_impl; } 53 48 54 private: 49 W ebStringImpl* m_impl;55 WTF::StringImpl* m_impl; 50 56 }; 51 57 } // namespace WebKit
Note: See TracChangeset
for help on using the changeset viewer.