Changeset 139787 in webkit


Ignore:
Timestamp:
Jan 15, 2013 2:04:29 PM (11 years ago)
Author:
mifenton@rim.com
Message:

[BlackBerry] Don't overwrite field dir with current locale.
https://bugs.webkit.org/show_bug.cgi?id=106932

Reviewed by Yong Li.

PR 212267.

Remove uncalled onInputLocaleChanged and stop re-writing the dir
on input focus which prevented RTL fields from rendering properly.

Reviewed Internally by Eli Fidler.

  • Api/WebPage.cpp:
  • Api/WebPage.h:
  • Api/WebPage_p.h:

(WebPagePrivate):

  • WebKitSupport/InputHandler.cpp:
  • WebKitSupport/InputHandler.h:

(InputHandler):

Location:
trunk/Source/WebKit/blackberry
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r139759 r139787  
    35183518}
    35193519
    3520 void WebPagePrivate::onInputLocaleChanged(bool isRTL)
    3521 {
    3522     if (isRTL != m_webSettings->isWritingDirectionRTL()) {
    3523         m_webSettings->setWritingDirectionRTL(isRTL);
    3524         m_inputHandler->handleInputLocaleChanged(isRTL);
    3525     }
    3526 }
    3527 
    3528 void WebPage::onInputLocaleChanged(bool isRTL)
    3529 {
    3530     d->onInputLocaleChanged(isRTL);
    3531 }
    3532 
    35333520void WebPagePrivate::suspendBackingStore()
    35343521{
  • trunk/Source/WebKit/blackberry/Api/WebPage.h

    r139582 r139787  
    265265    void setColorInput(const BlackBerry::Platform::String& value);
    266266
    267     void onInputLocaleChanged(bool isRTL);
    268267    static void onNetworkAvailabilityChanged(bool available);
    269268    static void onCertificateStoreLocationSet(const BlackBerry::Platform::String& caPath);
  • trunk/Source/WebKit/blackberry/Api/WebPage_p.h

    r139110 r139787  
    327327    void updateCursor();
    328328
    329     void onInputLocaleChanged(bool isRTL);
    330 
    331329    ViewMode viewMode() const { return m_viewMode; }
    332330    bool setViewMode(ViewMode); // Returns true if the change requires re-layout.
  • trunk/Source/WebKit/blackberry/ChangeLog

    r139759 r139787  
     12013-01-15  Mike Fenton  <mifenton@rim.com>
     2
     3        [BlackBerry] Don't overwrite field dir with current locale.
     4        https://bugs.webkit.org/show_bug.cgi?id=106932
     5
     6        Reviewed by Yong Li.
     7
     8        PR 212267.
     9
     10        Remove uncalled onInputLocaleChanged and stop re-writing the dir
     11        on input focus which prevented RTL fields from rendering properly.
     12
     13        Reviewed Internally by Eli Fidler.
     14
     15        * Api/WebPage.cpp:
     16        * Api/WebPage.h:
     17        * Api/WebPage_p.h:
     18        (WebPagePrivate):
     19        * WebKitSupport/InputHandler.cpp:
     20        * WebKitSupport/InputHandler.h:
     21        (InputHandler):
     22
    1232013-01-15  Jacky Jiang  <zhajiang@rim.com>
    224
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r139530 r139787  
    17391739}
    17401740
    1741 void InputHandler::handleInputLocaleChanged(bool isRTL)
    1742 {
    1743     if (!isActiveTextEdit())
    1744         return;
    1745 
    1746     ASSERT(m_currentFocusElement->document() && m_currentFocusElement->document()->frame());
    1747     RenderObject* renderer = m_currentFocusElement->renderer();
    1748     if (!renderer)
    1749         return;
    1750 
    1751     Editor* editor = m_currentFocusElement->document()->frame()->editor();
    1752     ASSERT(editor);
    1753     if ((renderer->style()->direction() == RTL) != isRTL)
    1754         editor->setBaseWritingDirection(isRTL ? RightToLeftWritingDirection : LeftToRightWritingDirection);
    1755 }
    1756 
    17571741void InputHandler::clearCurrentFocusElement()
    17581742{
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.h

    r138054 r139787  
    105105
    106106    void ensureFocusElementVisible(bool centerFieldInDisplay = true);
    107     void handleInputLocaleChanged(bool isRTL);
    108107
    109108    // PopupMenu methods.
Note: See TracChangeset for help on using the changeset viewer.