Changeset 139787 in webkit
- Timestamp:
- Jan 15, 2013 2:04:29 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r139759 r139787 3518 3518 } 3519 3519 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 3533 3520 void WebPagePrivate::suspendBackingStore() 3534 3521 { -
trunk/Source/WebKit/blackberry/Api/WebPage.h
r139582 r139787 265 265 void setColorInput(const BlackBerry::Platform::String& value); 266 266 267 void onInputLocaleChanged(bool isRTL);268 267 static void onNetworkAvailabilityChanged(bool available); 269 268 static void onCertificateStoreLocationSet(const BlackBerry::Platform::String& caPath); -
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
r139110 r139787 327 327 void updateCursor(); 328 328 329 void onInputLocaleChanged(bool isRTL);330 331 329 ViewMode viewMode() const { return m_viewMode; } 332 330 bool setViewMode(ViewMode); // Returns true if the change requires re-layout. -
trunk/Source/WebKit/blackberry/ChangeLog
r139759 r139787 1 2013-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 1 23 2013-01-15 Jacky Jiang <zhajiang@rim.com> 2 24 -
trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp
r139530 r139787 1739 1739 } 1740 1740 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 1757 1741 void InputHandler::clearCurrentFocusElement() 1758 1742 { -
trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.h
r138054 r139787 105 105 106 106 void ensureFocusElementVisible(bool centerFieldInDisplay = true); 107 void handleInputLocaleChanged(bool isRTL);108 107 109 108 // PopupMenu methods.
Note: See TracChangeset
for help on using the changeset viewer.