Changeset 179760 in webkit
- Timestamp:
- Feb 6, 2015, 2:05:26 PM (12 years ago)
- Location:
- branches/safari-600.4-branch/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
editing/Editor.cpp (modified) (1 diff)
-
editing/mac/DictionaryLookup.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-600.4-branch/Source/WebCore/ChangeLog
r179571 r179760 1 2015-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 1 20 2015-02-03 Matthew Hanson <matthew_hanson@apple.com> 2 21 -
branches/safari-600.4-branch/Source/WebCore/editing/Editor.cpp
r176804 r179760 3383 3383 Position end = visibleSelection.end(); 3384 3384 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); 3394 3387 } 3395 3388 -
branches/safari-600.4-branch/Source/WebCore/editing/mac/DictionaryLookup.mm
r176345 r179760 83 83 Position end = position.deepEquivalent(); 84 84 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); 94 87 } 95 88
Note:
See TracChangeset
for help on using the changeset viewer.