Reviewed by Ken.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jan 2005 01:36:41 +0000 (01:36 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jan 2005 01:36:41 +0000 (01:36 +0000)
commitae6dcab277193e73394618e840aac40e3621e82b
treeff1fa90c92427f48f28e74fdac98561e0db08af6
parent61bd9d5005113557d8566ea4b0a5950387631089
    Reviewed by Ken.

<rdar://problem/3965466> editing needs to insert text before applying typing style

        * khtml/editing/htmlediting.cpp:
        (khtml::ApplyStyleCommand::addInlineStyleIfNeeded): Remove a FIXME comment.
        (khtml::InsertLineBreakCommand::doApply): Apply style to the BR
node after inserting it.
        (khtml::InsertTextCommand::prepareForTextInsertion): Don't try to
apply style to any new nodes created before inserting.
        (khtml::InsertTextCommand::input): Apply style to the inserted range
after doing the text insert.
        * khtml/editing/htmlediting.h:

This change leads to improved results on one of the layout tests:

* layout-tests/editing/inserting/insert-div-024-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8422 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/inserting/insert-div-024-expected.txt
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp
WebCore/khtml/editing/htmlediting.h