Editing nested RTL-LTR content makes the process unresponsive.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2017 00:02:42 +0000 (00:02 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2017 00:02:42 +0000 (00:02 +0000)
commit42712c1db0c2f8656f70a5c605de2e2914ba6aee
tree109e2f79eb01bbe0e018e38d6093684ebea76043
parentc0a9c36e0de2de2115473dafa14e53652daae4a6
Editing nested RTL-LTR content makes the process unresponsive.
https://bugs.webkit.org/show_bug.cgi?id=167140
rdar://problem/29057611

Reviewed by Ryosuke Niwa.

Source/WebCore:

Break out of the loop if we keep coming back to the same position.
This is a workaround for the underlying editing/position bug -> webkit.org/b/167138.

Test: editing/rtl-to-ltr-editing-word-move-spin.html

* editing/VisibleUnits.cpp:
(WebCore::visualWordPosition):

LayoutTests:

* editing/rtl-to-ltr-editing-word-move-spin-expected.txt: Added.
* editing/rtl-to-ltr-editing-word-move-spin.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/rtl-to-ltr-editing-word-move-spin-expected.txt [new file with mode: 0644]
LayoutTests/editing/rtl-to-ltr-editing-word-move-spin.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/VisibleUnits.cpp