Changeset 179761 in webkit
- Timestamp:
- Feb 6, 2015, 2:08:05 PM (12 years ago)
- Location:
- branches/safari-600.5-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.5-branch/Source/WebCore/ChangeLog
r179748 r179761 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-01-24 David Kilzer <ddkilzer@apple.com> 2 21 -
branches/safari-600.5-branch/Source/WebCore/editing/Editor.cpp
r178941 r179761 3387 3387 Position end = visibleSelection.end(); 3388 3388 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); 3398 3391 } 3399 3392 -
branches/safari-600.5-branch/Source/WebCore/editing/mac/DictionaryLookup.mm
r176345 r179761 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.