Changeset 210831 in webkit
- Timestamp:
- Jan 17, 2017, 4:02:42 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r210830 r210831 1 2017-01-17 Zalan Bujtas <zalan@apple.com> 2 3 Editing nested RTL-LTR content makes the process unresponsive. 4 https://bugs.webkit.org/show_bug.cgi?id=167140 5 rdar://problem/29057611 6 7 Reviewed by Ryosuke Niwa. 8 9 * editing/rtl-to-ltr-editing-word-move-spin-expected.txt: Added. 10 * editing/rtl-to-ltr-editing-word-move-spin.html: Added. 11 1 12 2017-01-17 Ryan Haddad <ryanhaddad@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r210829 r210831 1 2017-01-17 Zalan Bujtas <zalan@apple.com> 2 3 Editing nested RTL-LTR content makes the process unresponsive. 4 https://bugs.webkit.org/show_bug.cgi?id=167140 5 rdar://problem/29057611 6 7 Reviewed by Ryosuke Niwa. 8 9 Break out of the loop if we keep coming back to the same position. 10 This is a workaround for the underlying editing/position bug -> webkit.org/b/167138. 11 12 Test: editing/rtl-to-ltr-editing-word-move-spin.html 13 14 * editing/VisibleUnits.cpp: 15 (WebCore::visualWordPosition): 16 1 17 2017-01-16 Filip Pizlo <fpizlo@apple.com> 2 18 -
trunk/Source/WebCore/editing/VisibleUnits.cpp
r209907 r210831 353 353 InlineBox* previouslyVisitedBox = nullptr; 354 354 VisiblePosition current = visiblePosition; 355 std::optional<VisiblePosition> previousPosition; 355 356 UBreakIterator* iter = nullptr; 356 357 … … 361 362 VisiblePosition adjacentCharacterPosition = direction == MoveRight ? current.right(true) : current.left(true); 362 363 if (adjacentCharacterPosition == current || adjacentCharacterPosition.isNull()) 364 return VisiblePosition(); 365 // FIXME: This is a workaround for webkit.org/b/167138. 366 if (previousPosition && adjacentCharacterPosition == previousPosition.value()) 363 367 return VisiblePosition(); 364 368 … … 410 414 return adjacentCharacterPosition; 411 415 416 previousPosition = current; 412 417 current = adjacentCharacterPosition; 413 418 }
Note:
See TracChangeset
for help on using the changeset viewer.