2010-09-25  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Tony Chang.

        FormatBlockCommand's modifyRange and doApply should be merged
        https://bugs.webkit.org/show_bug.cgi?id=46504

        Isolated the code in doApply to insert and remove lists for single paragraph into doApplyForSingleParagraph.
        Merged the code in modifyRange into doApply and cleaned up.

        No new tests are added since this is a cleanup.

        * editing/FormatBlockCommand.cpp:
        (WebCore::FormatBlockCommand::doApply): Merged with modifyRange; calls doApplyForSingleParagraph.
        (WebCore::FormatBlockCommand::doApplyForSingleParagraph): Added.
        * editing/FormatBlockCommand.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed