12010-12-16 Benjamin Kalman <kalman@chromium.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Moving or selecting backwards by words jumps to start of contenteditable region if contenteditable=false span is encountered
6 https://bugs.webkit.org/show_bug.cgi?id=51001
7
8 Revert part of changeset 64974 (bugs.webkit.org/b/36359) which caused this regression by
9 removing references to TextIteratorEndsAtEditingBoundary.
10 Add an alternative fix which ensures that the rightmost equivalent Position is used to
11 create the VisiblePosition returned from previousBoundary.
12
13 Test: editing/selection/extend-backward-by-word-over-non-editable.html
14
15 * editing/TextIterator.cpp:
16 (WebCore::TextIterator::TextIterator): Remove references to TextIteratorEndsAtEditingBoundary
17 (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
18 (WebCore::SimplifiedBackwardsTextIterator::advance):
19 (WebCore::SimplifiedBackwardsTextIterator::setNodeIfNotNull):
20 * editing/TextIterator.h: Remove TextIteratorEndsAtEditingBoundary
21 * editing/visible_units.cpp:
22 (WebCore::rightmostEquivalent):
23 (WebCore::previousBoundary): Use the rightmost equivalent Position for the returned VisiblePosition
24