WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 22:48:41 +0000 (22:48 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Apr 2008 22:48:41 +0000 (22:48 +0000)
commit2685fd11f0351df88c14b30c307b23e25291a55d
tree163c6d0347bb474040372ed8c59e537860950184
parent8be77a63f31d64d7d23c0db656471d8761d999b9
WebCore:

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

        Reviewed by John Sullivan.

        <rdar://problem/5803706> Pressing return at the end of a header doesn't break out of header (17460)

        If we're doing InsertParagraphSeparator at the end of a header element, do not clone it.
        Renamed m_useDefaultParagraphElement to m_mustUseDefaultParagraphElement, since now,
        when it is false, that does not necessarily mean that a default paragraph element
        will not be used.  Callers that passed false for this argument are OK with this.

        * editing/InsertParagraphSeparatorCommand.cpp:
        (WebCore::InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand):
        (WebCore::InsertParagraphSeparatorCommand::shouldUseDefaultParagraphElement):
        (WebCore::InsertParagraphSeparatorCommand::doApply):
        * editing/InsertParagraphSeparatorCommand.h:

LayoutTests:

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

        Reviewed by John Sullivan.

        <rdar://problem/5803706> Pressing return at the end of a header doesn't break out of header (17460)

        * editing/inserting/5803706-1-expected.txt: Added.
        * editing/inserting/5803706-1.html: Added.
        * editing/inserting/5803706-2-expected.txt: Added.
        * editing/inserting/5803706-2.html: Added.

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