WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Apr 2009 20:03:43 +0000 (20:03 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Apr 2009 20:03:43 +0000 (20:03 +0000)
commit6018537605e21e233f8b3fcf2e9a475787fd8e5d
tree57822c65df5259d71480b1ef52616fa5f2939603
parent64f648aefb6c81b6b11f0c749ddb7069ae3b7946
WebCore:

        Reviewed by Darin Adler.

        - fix <rdar://problem/6764359> Thai word selection misbehaves for the
          last sentence in the document

        Test: editing/selection/thai-word-at-document-end.html

        * editing/visible_units.cpp:
            - Added a BoundarySearchContextAvailability enum used to indicate
            whether the caller to a boundary search function may be able to provide
            additional text in the search direction and call again.
            - Added a named type for the boundary search function signature. Changed
            the signature to take a context availability parameter and a boolean
            out parameter indicating whether more context is needed to perform
            the search.
        (WebCore::previousBoundary): If the beginning of the range was reached
            but the last search wanted more context, perform the search again, this
            time indicating that there is no earlier text.
        (WebCore::nextBoundary): Similarly, in the other direction.
        (WebCore::startWordBoundary): Check whether more context may be available
            and ask for more context if needed.
        (WebCore::endWordBoundary): Ditto.
        (WebCore::previousWordPositionBoundary): Ditto.
        (WebCore::nextWordPositionBoundary): Ditto.
        (WebCore::startSentenceBoundary):  Updated signature.
        (WebCore::endSentenceBoundary): Ditto.
        (WebCore::previousSentencePositionBoundary): Ditto.
        (WebCore::nextSentencePositionBoundary): Ditto.

LayoutTests:

        Reviewed by Darin Adler.

        - test for <rdar://problem/6764359> Thai word selection misbehaves for the
          last sentence in the document

        * editing/selection/thai-word-at-document-end-expected.txt: Added.
        * editing/selection/thai-word-at-document-end.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/thai-word-at-document-end-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/thai-word-at-document-end.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/editing/visible_units.cpp