2011-05-20  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        ctrl-arrow does not work on words separated by multiple spaces.
        https://bugs.webkit.org/show_bug.cgi?id=57543.

        Add the leftmost boundary of a box in RTL block or the rightmost boundary of a box in LTR
        block as word break if its inlineBox is the current box and it is a word break.

        * editing/visible_units.cpp:
        (WebCore::previousWordBreakInBoxInsideBlockWithSameDirectionality): Add the rightmost
        boundary of a box in LTR block or leftmost boundary of a box in RTL block as visually
        first word break.
        (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality):
        (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality):
        (WebCore::leftWordBoundary): Fix bug change "box" to "adjacentBox".
        (WebCore::rightWordBoundary): Fix bug change "box" to "adjacentBox".
2011-05-20  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        ctrl-arrow does not work on words separated by multiple spaces.
        https://bugs.webkit.org/show_bug.cgi?id=57543.

        Add more test cases for mutiplespaces.

        * editing/selection/move-by-word-visually-expected.txt:
        * editing/selection/move-by-word-visually.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed