2011-01-25 Levi Weintraub <leviw@chromium.org>
authorleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jan 2011 22:38:10 +0000 (22:38 +0000)
committerleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jan 2011 22:38:10 +0000 (22:38 +0000)
commitda0573d39d9854caaa377267090f092a50f6855d
tree0d1daa3c357cbdf199488004727fc33dd1a4ca93
parentba16607861fb74693d36f29b5df509b67dfd39fd
2011-01-25  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Darin Adler.

        Updating the expected result for 5408255 and adding tests for caret positioning at the
        beginning and end of RenderBoxes.

        Undo moves caret to invalid position
        https://bugs.webkit.org/show_bug.cgi?id=49744

        * editing/selection/caret-painting-after-paste-undo-rtl.html: Added.
        * editing/selection/caret-painting-after-paste-undo.html: Added.
        * platform/mac/editing/deleting/5408255-expected.png:
        * platform/mac/editing/selection/caret-painting-after-paste-undo-expected.checksum: Added.
        * platform/mac/editing/selection/caret-painting-after-paste-undo-expected.png: Added.
        * platform/mac/editing/selection/caret-painting-after-paste-undo-expected.txt: Added.
        * platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.checksum: Added.
        * platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.png: Added.
        * platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.txt: Added.
2011-01-25  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Darin Adler.

        Adding border and padding to the calculation of the local caret rect for RenderBoxes.
        Corrected for mistake in r76625

        Undo moves caret to invalid position
        https://bugs.webkit.org/show_bug.cgi?id=49744

        Tests: editing/selection/caret-painting-after-paste-undo-rtl.html
               editing/selection/caret-painting-after-paste-undo.html

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::localCaretRect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@76839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/selection/caret-painting-after-paste-undo-rtl.html [new file with mode: 0644]
LayoutTests/editing/selection/caret-painting-after-paste-undo.html [new file with mode: 0644]
LayoutTests/platform/mac/editing/deleting/5408255-expected.png
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/caret-painting-after-paste-undo-rtl-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp