WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 May 2008 04:20:36 +0000 (04:20 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 May 2008 04:20:36 +0000 (04:20 +0000)
commit599ba0392350d777bfad32d2eae1d340dc7d942a
tree2370712016fd661f77345493cdc57b90c967c11e
parentbfa1e64dc5b91a90fa54846aa081e38fb9b1746d
WebCore:

2008-05-27  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Oliver.

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

        It wasn't enough to break out of the header, to match other browsers we
        also need to not preserve the typing style.

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

LayoutTests:

2008-05-27  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Oliver.

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

        * editing/inserting/5803706-1-expected.txt: Adjust this already checked-in test to reflect the new
        expected behavior.
        * editing/inserting/5803706-1.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/inserting/5803706-1-expected.txt
LayoutTests/editing/inserting/5803706-1.html
WebCore/ChangeLog
WebCore/editing/InsertParagraphSeparatorCommand.cpp
WebCore/editing/InsertParagraphSeparatorCommand.h