Changeset 179758 in webkit
- Timestamp:
- Feb 6, 2015, 1:54:45 PM (12 years ago)
- Location:
- trunk/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
-
trunk/Source/WebCore/ChangeLog
r179750 r179758 1 2015-02-06 Timothy Horton <timothy_horton@apple.com> 2 3 REGRESSION: Lookup doesn't work in RTL 4 https://bugs.webkit.org/show_bug.cgi?id=141338 5 <rdar://problem/19738407> 6 7 Reviewed by Dan Bernstein. 8 9 * editing/Editor.cpp: 10 (WebCore::Editor::scanSelectionForTelephoneNumbers): 11 * editing/mac/DictionaryLookup.mm: 12 (WebCore::rangeExpandedAroundPositionByCharacters): 13 Positions are independent of writing direction, so we don't 14 need to (and shouldn't) do anything special for RTL here. 15 1 16 2015-02-06 Maciej Stachowiak <mjs@apple.com> 2 17 -
trunk/Source/WebCore/editing/Editor.cpp
r179569 r179758 3295 3295 Position end = visibleSelection.end(); 3296 3296 for (int i = 0; i < charactersToExtend; ++i) { 3297 if (directionOfEnclosingBlock(start) == LTR) 3298 start = start.previous(Character); 3299 else 3300 start = start.next(Character); 3301 3302 if (directionOfEnclosingBlock(end) == LTR) 3303 end = end.next(Character); 3304 else 3305 end = end.previous(Character); 3297 start = start.previous(Character); 3298 end = end.next(Character); 3306 3299 } 3307 3300 -
trunk/Source/WebCore/editing/mac/DictionaryLookup.mm
r176296 r179758 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.