Changeset 144977 in webkit


Ignore:
Timestamp:
Mar 6, 2013, 2:12:27 PM (12 years ago)
Author:
nghanavatian@rim.com
Message:

[BlackBerry] Selection handles don't drag to expand correctly for RTL languages
https://bugs.webkit.org/show_bug.cgi?id=111618

Reviewed by Rob Buis.

PR 303712
If we are using a RTL language, we should ensure that the selection handles are angled the right way.
Further, when expanding the selection, the start and end handles should be appropriately set so that
expansion in the natural direction is possible.

Internally reviewed by Mike Fenton.

  • WebKitSupport/SelectionHandler.cpp:

(BlackBerry::WebKit::SelectionHandler::SelectionHandler):
(BlackBerry::WebKit::SelectionHandler::selectionPositionChanged):

  • WebKitSupport/SelectionHandler.h:

(SelectionHandler):

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r144955 r144977  
     12013-03-06  Nima Ghanavatian  <nghanavatian@rim.com>
     2
     3        [BlackBerry] Selection handles don't drag to expand correctly for RTL languages
     4        https://bugs.webkit.org/show_bug.cgi?id=111618
     5
     6        Reviewed by Rob Buis.
     7
     8        PR 303712
     9        If we are using a RTL language, we should ensure that the selection handles are angled the right way.
     10        Further, when expanding the selection, the start and end handles should be appropriately set so that
     11        expansion in the natural direction is possible.
     12
     13        Internally reviewed by Mike Fenton.
     14
     15        * WebKitSupport/SelectionHandler.cpp:
     16        (BlackBerry::WebKit::SelectionHandler::SelectionHandler):
     17        (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged):
     18        * WebKitSupport/SelectionHandler.h:
     19        (SelectionHandler):
     20
    1212013-03-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    222
  • trunk/Source/WebKit/blackberry/WebKitSupport/SelectionHandler.cpp

    r144640 r144977  
    12061206    }
    12071207
    1208     if (!frame->selection()->selection().isBaseFirst() || isRTL ) {
     1208    if (!frame->selection()->selection().isBaseFirst()) {
    12091209        // End handle comes before start, invert the caret reference points.
    12101210        WebCore::IntRect tmpCaret(startCaret);
     
    12211221        m_webPage->m_selectionOverlay->draw(visibleSelectionRegion);
    12221222
    1223 
    12241223    VisibleSelection currentSelection = frame->selection()->selection();
    12251224    SelectionDetails details(startCaret, endCaret, visibleSelectionRegion, inputNodeOverridesTouch(),
    1226         m_lastSelection != currentSelection, requestedSelectionHandlePosition(frame->selection()->selection()));
     1225        m_lastSelection != currentSelection, requestedSelectionHandlePosition(frame->selection()->selection()), isRTL);
    12271226
    12281227    m_webPage->m_client->notifySelectionDetailsChanged(details);
Note: See TracChangeset for help on using the changeset viewer.