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

Changeset 179760 in webkit


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

Merged r179758. rdar://problem/19738407

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

Legend:

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

    r179571 r179760  
     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-02-03  Matthew Hanson  <matthew_hanson@apple.com>
    221
  • branches/safari-600.4-branch/Source/WebCore/editing/Editor.cpp

    r176804 r179760  
    33833383    Position end = visibleSelection.end();
    33843384    for (int i = 0; i < charactersToExtend; ++i) {
    3385         if (directionOfEnclosingBlock(start) == LTR)
    3386             start = start.previous(Character);
    3387         else
    3388             start = start.next(Character);
    3389 
    3390         if (directionOfEnclosingBlock(end) == LTR)
    3391             end = end.next(Character);
    3392         else
    3393             end = end.previous(Character);
     3385        start = start.previous(Character);
     3386        end = end.next(Character);
    33943387    }
    33953388
  • branches/safari-600.4-branch/Source/WebCore/editing/mac/DictionaryLookup.mm

    r176345 r179760  
    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.