Changeset 108011 in webkit


Ignore:
Timestamp:
Feb 16, 2012 6:08:15 PM (12 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Adapt to the removal of WebStringIml.h
https://bugs.webkit.org/show_bug.cgi?id=78784

Reviewed by Antonio Gomes.

Source/WebCore:

WebKit/blackberry/WebCoreSupport/WebStringImpl.h which hasn't been upstreamed
has been removed internally. We should adapt to this removal for the
upstreamed part of the BlackBerry port. Actually WebStringImpl is not necessary
because it just inherits from WTF::StringImpl but adding nothing.

No functionalities changed, no new tests.

  • platform/text/blackberry/StringBlackBerry.cpp:

(WTF::String::operator WebString):

Source/WebKit:

blackberry/WebCoreSupport/WebStringImpl.h which hasn't been upstreamed
has been removed internally. We should adapt to this removal for the
upstreamed part of the BlackBerry port. Actually WebStringImpl is not necessary
because it just inherits from WTF::StringImpl but adding nothing.

  • blackberry/Api/WebString.cpp:

(BlackBerry::WebKit::WebString::WebString):
(BlackBerry::WebKit::WebString::equalIgnoringCase):

  • blackberry/Api/WebString.h:

(WTF):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r108010 r108011  
     12012-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
    1182012-02-15  Geoffrey Garen  <ggaren@apple.com>
    219
  • trunk/Source/WebCore/platform/text/blackberry/StringBlackBerry.cpp

    r101159 r108011  
    2121
    2222#include "WebString.h"
    23 #include "WebStringImpl.h"
    2423
    2524using BlackBerry::WebKit::WebString;
    26 using BlackBerry::WebKit::WebStringImpl;
    2725
    2826namespace WTF {
     
    3533String::operator WebString() const
    3634{
    37     WebString webString(static_cast<WebStringImpl*>(m_impl.get()));
     35    WebString webString(m_impl.get());
    3836    return webString;
    3937}
  • trunk/Source/WebKit/ChangeLog

    r107946 r108011  
     12012-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
    1192012-02-16  Nima Ghanavatian  <nghanavatian@rim.com>
    220
  • trunk/Source/WebKit/blackberry/Api/WebString.cpp

    r102747 r108011  
    2020#include "WebString.h"
    2121
    22 #include "WebStringImpl.h"
    2322#include <wtf/text/CString.h>
    2423#include <wtf/text/WTFString.h>
     
    2827
    2928WebString::WebString(const char* latin1)
    30     : m_impl(static_cast<WebStringImpl*>(WTF::StringImpl::create(latin1).releaseRef()))
     29    : m_impl(StringImpl::create(latin1).leakRef())
    3130{
    3231}
    3332
    3433WebString::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())
    3635{
    3736}
    3837
    3938WebString::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())
    4140{
    4241}
    4342
    44 WebString::WebString(WebStringImpl* impl)
     43WebString::WebString(StringImpl* impl)
    4544    : m_impl(impl)
    4645{
     
    110109bool WebString::equalIgnoringCase(const char* utf8) const
    111110{
    112     return WTF::equalIgnoringCase(m_impl, utf8);
     111    return WTF::equalIgnoringCase(utf8, WTF::String(m_impl));
    113112}
    114113
  • trunk/Source/WebKit/blackberry/Api/WebString.h

    r102747 r108011  
    2323#include <string>
    2424
     25// Not for public API purpose.
     26namespace WTF {
     27class StringImpl;
     28}
     29
    2530namespace BlackBerry {
    2631namespace WebKit {
    27 
    28 class WebStringImpl;
    2932
    3033class BLACKBERRY_EXPORT WebString {
     
    3538    WebString(const char* latin1, unsigned length);
    3639    WebString(const unsigned short* utf16, unsigned length);
    37     WebString(WebStringImpl*);
    3840    WebString(const WebString&);
    3941    WebString& operator=(const WebString&);
     
    4547    bool equal(const char* utf8) const;
    4648    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
    4854private:
    49     WebStringImpl* m_impl;
     55    WTF::StringImpl* m_impl;
    5056};
    5157} // namespace WebKit
Note: See TracChangeset for help on using the changeset viewer.