Reviewed by Dave Harrison.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2005 19:04:29 +0000 (19:04 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2005 19:04:29 +0000 (19:04 +0000)
commitce9295a60b3129d1121a3bb262266debaaa7ed81
tree76b5f00d735cbd4541e9df21ad85f815e536f663
parentacaa86c136051e30e546f1a8634494682b1f4b87
    Reviewed by Dave Harrison.

- remove remaining uses of upstream/downstream DoNotStayInBlock

        * khtml/editing/htmlediting.cpp:
        (khtml::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
        (khtml::ApplyStyleCommand::nodeFullySelected):
        (khtml::ApplyStyleCommand::nodeFullyUnselected):
        (khtml::DeleteSelectionCommand::insertPlaceholderForAncestorBlockContent):
        (khtml::InsertParagraphSeparatorCommand::doApply):
        (khtml::InsertParagraphSeparatorInQuotedContentCommand::doApply):
        (khtml::InsertTextCommand::insertSpace):
        (khtml::ReplaceSelectionCommand::doApply):

        * khtml/editing/visible_position.cpp:
        (khtml::enclosingBlockFlowElement): New helper function.
* khtml/editing/visible_position.h:

        * khtml/editing/visible_units.cpp:
        (khtml::inSameBlock): Check enclosing block flows instead of comparing
visible block starts. Two nested blocks may have the same visible start but
different visible ends, so the old check would give false positives.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp
WebCore/khtml/editing/visible_position.cpp
WebCore/khtml/editing/visible_position.h
WebCore/khtml/editing/visible_units.cpp