WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Apr 2008 18:25:10 +0000 (18:25 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Apr 2008 18:25:10 +0000 (18:25 +0000)
commite8ec2773b793bd11d19d280f87f1d986c4ba8f68
tree490a2a23b26b32b5232e5f3f3c7edfc99b4bdea8
parent3f2e617372620a2c31a6d808791d780c2bb470dd
WebCore:

2008-04-23  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/5825350> OWA: Caret disappears when navigating with arrows keys in contenteditable div

        * editing/htmlediting.cpp:
        (WebCore::firstEditablePositionAfterPositionInRoot): Return a null VisiblePosition if
        this function moves out of highestRoot.  Re-wrote so as to not duplicate code inside
        and outside of the while loop.
        (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.

LayoutTests:

2008-04-23  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/5825350> OWA: Caret disappears when navigating with arrows keys in contenteditable div

        * editing/selection/5825350-1-expected.txt: Added.
        * editing/selection/5825350-1.html: Added.
        * editing/selection/5825350-2-expected.txt: Added.
        * editing/selection/5825350-2.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/5825350-1-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/5825350-1.html [new file with mode: 0644]
LayoutTests/editing/selection/5825350-2-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/5825350-2.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/htmlediting.cpp