⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179761 in webkit


Ignore:
Timestamp:
Feb 6, 2015, 2:08:05 PM (12 years ago)
Author:
bshafiei@apple.com
Message:

Merged r179758. rdar://problem/19738407

Location:
branches/safari-600.5-branch/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-600.5-branch/Source/WebCore/ChangeLog

    r179748 r179761  
     12015-02-06  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r179758.
     4
     5    2015-02-06  Timothy Horton  <timothy_horton@apple.com>
     6
     7            REGRESSION: Lookup doesn't work in RTL
     8            https://bugs.webkit.org/show_bug.cgi?id=141338
     9            <rdar://problem/19738407>
     10
     11            Reviewed by Dan Bernstein.
     12
     13            * editing/Editor.cpp:
     14            (WebCore::Editor::scanSelectionForTelephoneNumbers):
     15            * editing/mac/DictionaryLookup.mm:
     16            (WebCore::rangeExpandedAroundPositionByCharacters):
     17            Positions are independent of writing direction, so we don't
     18            need to (and shouldn't) do anything special for RTL here.
     19
    1202015-01-24  David Kilzer  <ddkilzer@apple.com>
    221
  • branches/safari-600.5-branch/Source/WebCore/editing/Editor.cpp

    r178941 r179761  
    33873387    Position end = visibleSelection.end();
    33883388    for (int i = 0; i < charactersToExtend; ++i) {
    3389         if (directionOfEnclosingBlock(start) == LTR)
    3390             start = start.previous(Character);
    3391         else
    3392             start = start.next(Character);
    3393 
    3394         if (directionOfEnclosingBlock(end) == LTR)
    3395             end = end.next(Character);
    3396         else
    3397             end = end.previous(Character);
     3389        start = start.previous(Character);
     3390        end = end.next(Character);
    33983391    }
    33993392
  • branches/safari-600.5-branch/Source/WebCore/editing/mac/DictionaryLookup.mm

    r176345 r179761  
    8383    Position end = position.deepEquivalent();
    8484    for (int i = 0; i < numberOfCharactersToExpand; ++i) {
    85         if (directionOfEnclosingBlock(start) == LTR)
    86             start = start.previous(Character);
    87         else
    88             start = start.next(Character);
    89 
    90         if (directionOfEnclosingBlock(end) == LTR)
    91             end = end.next(Character);
    92         else
    93             end = end.previous(Character);
     85        start = start.previous(Character);
     86        end = end.next(Character);
    9487    }
    9588
Note: See TracChangeset for help on using the changeset viewer.