Commit be11d7ec authored by harrison's avatar harrison

Reviewed by Darin.

        <rdar://problem/4337532> Paragraph concatenation fails

        Updated editing/deleting tests to correctly check this behavior.

        * khtml/editing/delete_selection_command.cpp:
        (khtml::DeleteSelectionCommand::initializePositionData):
        Remove erroneous check for isStartOfParagraph(visibleEnd) when deciding whether to clear m_mergeBlocksAfterDelete.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 57cc309f
2005-11-11 David Harrison <harrison@apple.com>
Reviewed by Darin.
<rdar://problem/4337532> Paragraph concatenation fails
Updated editing/deleting tests to correctly check this behavior.
* khtml/editing/delete_selection_command.cpp:
(khtml::DeleteSelectionCommand::initializePositionData):
Remove erroneous check for isStartOfParagraph(visibleEnd) when deciding whether to clear m_mergeBlocksAfterDelete.
2005-11-14 Anders Carlsson <andersca@mac.com>
* ChangeLog: Add bug numbers for recent fixes.
......@@ -220,7 +220,7 @@ void DeleteSelectionCommand::initializePositionData()
// This is one of the tests that determines if block merging of content needs to be done.
//
VisiblePosition visibleEnd(end, m_selectionToDelete.endAffinity());
if (isStartOfParagraph(visibleEnd) || isEndOfParagraph(visibleEnd)) {
if (isEndOfParagraph(visibleEnd)) {
Position previousLineStart = previousLinePosition(visibleEnd, 0).deepEquivalent();
if (previousLineStart.isNull() || RangeImpl::compareBoundaryPoints(previousLineStart, m_downstreamStart) >= 0)
m_mergeBlocksAfterDelete = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment