LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jun 2006 19:14:21 +0000 (19:14 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jun 2006 19:14:21 +0000 (19:14 +0000)
commitfe08973c41f6cd3f91862d6a409e8f2beabbf561
treea707b56a1425c92067689bcdd3673123e04e689d
parentd23a886bcbe90650c68c360f072a4af209542bc1
LayoutTests:

        Reviewed by levi

        <rdar://problem/4549980>
        REGRESSION: "Find Again" can get stuck when searching for string with a trailing space

        * editing/execCommand/findString-expected.checksum: Added.
        * editing/execCommand/findString-expected.png: Added.
        * editing/execCommand/findString-expected.txt: Added.
        * editing/execCommand/findString.html: Added.

WebCore:

        Reviewed by levi

        <rdar://problem/4549980>
        REGRESSION: "Find Again" can get stuck when searching for string with a trailing space

        * bridge/mac/FrameMac.h: Moved findString to Frame.
        * bridge/mac/FrameMac.mm: Ditto.
        * bridge/mac/WebCoreFrameBridge.mm:
        (-[WebCoreFrameBridge searchFor:direction:caseSensitive:wrap:]):
        Convert the NSString to a String.
        * editing/JSEditor.cpp: Added execCommand(FindString, ...)
        * editing/Selection.cpp: Added a constructor for Ranges
        (WebCore::Selection::Selection):
        * editing/Selection.h:
        * page/Frame.cpp:
        (WebCore::Frame::findString): Moved from FrameMac.  Compare a selection created
        using the found range with the current selection in case the current selection is
        the found range minus some collapsed whitespace on the edges.
        * page/Frame.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/findString-expected.checksum [new file with mode: 0644]
LayoutTests/editing/execCommand/findString-expected.png [new file with mode: 0644]
LayoutTests/editing/execCommand/findString-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/findString.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.h
WebCore/bridge/mac/FrameMac.mm
WebCore/bridge/mac/WebCoreFrameBridge.mm
WebCore/editing/JSEditor.cpp
WebCore/editing/Selection.cpp
WebCore/editing/Selection.h
WebCore/page/Frame.cpp
WebCore/page/Frame.h