Smart delete for paragraphs.
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Mar 2019 17:03:17 +0000 (17:03 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Mar 2019 17:03:17 +0000 (17:03 +0000)
commit72c722643474b3fdaf88cc61e49b17cd727117f3
treea0f8179489434a6098ff85410bdbe4ee49a610ce
parentc57fe5c26d0eb3ccfa4afbd74838650a14bd107e
Smart delete for paragraphs.
https://bugs.webkit.org/show_bug.cgi?id=195837

Reviewed by Ryosuke Niwa.

Remove additional newlines to maintain spacing around paragraphs.

Tests: editing/pasteboard/smart-delete-paragraph-001.html
       editing/pasteboard/smart-delete-paragraph-002.html
       editing/pasteboard/smart-delete-paragraph-003.html
       editing/pasteboard/smart-delete-paragraph-004.html

* editing/DeleteSelectionCommand.cpp:
(WebCore::isBlankLine):
(WebCore::DeleteSelectionCommand::initializePositionData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
LayoutTests/editing/deleting/smart-delete-paragraph-001-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-001.html [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-002-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-002.html [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-003-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-003.html [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-004-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/smart-delete-paragraph-004.html [new file with mode: 0644]
LayoutTests/platform/ios/editing/deleting/delete-3959464-fix-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios/editing/deleting/smart-delete-paragraph-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios/editing/deleting/smart-delete-paragraph-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios/editing/deleting/smart-delete-paragraph-003-expected.txt [new file with mode: 0644]
LayoutTests/platform/ios/editing/deleting/smart-delete-paragraph-004-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/DeleteSelectionCommand.cpp
Source/WebCore/editing/DeleteSelectionCommand.h
Source/WebCore/editing/ReplaceSelectionCommand.cpp
Source/WebCore/editing/VisibleUnits.cpp
Source/WebCore/editing/VisibleUnits.h