2011-03-09 Levi Weintraub <leviw@chromium.org>
authorleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2011 21:19:29 +0000 (21:19 +0000)
committerleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2011 21:19:29 +0000 (21:19 +0000)
commit9182ef87afeb64a72e7b24a5f2c0571ae5293045
tree877344c6a37f1e00026fbd8db4c43b1342cc7e12
parentff40c982d9f5c104f244ad5ebaa8c1545ec158dc
2011-03-09  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        Deleting content directly following a button inserts an unnecessary placeholder
        https://bugs.webkit.org/show_bug.cgi?id=56053

        Test to ensure unnecessary placeholders aren't inserted after buttons when delete is pressed.

        * editing/deleting/delete-inserts-br-after-button-expected.txt: Added.
        * editing/deleting/delete-inserts-br-after-button.html: Added.
2011-03-09  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        Deleting content directly following a button inserts an unnecessary placeholder
        https://bugs.webkit.org/show_bug.cgi?id=56053

        Fixing a use of Node's enclosingBlockFlowElement with enclosingBlock htmlediting's
        enclosingBlock, as enclosingBlockFlowElement would return inline-block elements despite
        DeleteSelectionCommand treating them as blockflow.

        Test: editing/deleting/delete-inserts-br-after-button.html

        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::mergeParagraphs):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-inserts-br-after-button-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-inserts-br-after-button.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/DeleteSelectionCommand.cpp