12010-12-13 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 Test: editing/selection/extend-backward-by-word-over-non-editable.html
9
10 * editing/TextIterator.cpp: For TextIteratorEndsAtEditingBoundary (now
11 TextIteratorEndsWhenAscendsAcrossEditingBoundary), only stop text iteration if the editing
12 boundary change occurs when ascending in the dom.
13 (WebCore::TextIterator::TextIterator):
14 (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
15 (WebCore::SimplifiedBackwardsTextIterator::ascendsAcrossEditingBoundary):
16 (WebCore::SimplifiedBackwardsTextIterator::setCurrentNode):
17 * editing/TextIterator.h: Rename TextIteratorEndsAtEditingBoundary to
18 TextIteratorEndsWhenAscendsAcrossEditingBoundary to reflect what it does now.
19 * editing/visible_units.cpp:
20 (WebCore::previousBoundary):
21