Reviewed by Darin
Significant improvement to the way that whitespace is handled during editing.
* khtml/editing/htmlediting.cpp:
(khtml::CompositeEditCommand::deleteInsignificantText): New functions (there are actually
two being added with this name) that delete "insignificant" unrendered text.
(khtml::CompositeEditCommand::deleteInsignificantTextDownstream): Takes a position,
calculates the downstream position to use as the endpoint for the deletion, and
then calls deleteInsignificantText with this start and end.
(khtml::DeleteSelectionCommand::doApply): Call new deleteInsignificantTextDownstream function.
(khtml::InputNewlineCommand::doApply): Ditto.
(khtml::InputTextCommand::input): Ditto.
* khtml/editing/htmlediting.h: Add new declarations.
Modified layout test results:
* layout-tests/editing/deleting/delete-block-merge-contents-016-expected.txt:
* layout-tests/editing/deleting/delete-block-merge-contents-017-expected.txt:
* layout-tests/editing/deleting/delete-contiguous-ws-001-expected.txt:
* layout-tests/editing/deleting/delete-selection-001-expected.txt:
* layout-tests/editing/deleting/delete-tab-001-expected.txt:
* layout-tests/editing/deleting/delete-tab-004-expected.txt:
* layout-tests/editing/deleting/delete-trailing-ws-001-expected.txt:
* layout-tests/editing/inserting/insert-
3659587-fix-expected.txt:
* layout-tests/editing/inserting/insert-
3775316-fix-expected.txt:
* layout-tests/editing/inserting/insert-
3778059-fix-expected.txt:
* layout-tests/editing/inserting/insert-br-001-expected.txt:
* layout-tests/editing/inserting/insert-br-004-expected.txt:
* layout-tests/editing/inserting/insert-br-005-expected.txt:
* layout-tests/editing/inserting/insert-br-006-expected.txt:
* layout-tests/editing/inserting/insert-tab-001-expected.txt:
* layout-tests/editing/inserting/insert-tab-002-expected.txt:
* layout-tests/editing/inserting/insert-tab-004-expected.txt:
* layout-tests/editing/inserting/insert-text-with-newlines-expected.txt:
* layout-tests/editing/inserting/typing-001-expected.txt:
* layout-tests/editing/inserting/typing-around-br-001-expected.txt:
* layout-tests/editing/inserting/typing-around-image-001-expected.txt:
* layout-tests/editing/style/typing-style-003-expected.txt:
* layout-tests/editing/undo/redo-typing-001-expected.txt:
* layout-tests/editing/undo/undo-typing-001-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7875
268f45cc-cd09-0410-ab3c-
d52691b4dbfc