|
Avoid adding placeholder when deleting last text in root
Editing code uses placeholders for all manner of different functions including
holding open content editable blocks. When there's no content in the blocks except
text, these placeholders aren't necessary and is confusing Android's IME path.
Android's IME path should probably just be fixed, but in the meantime, this
creates fewer placeholders, which is definitely an improvement.
The previous version of this patch was rolled out due to crashes, see
https://codereview.chromium.org/14969020. This patch adds a check in
cleanupAfterDeletion to ensure we don't remove ancestors of our destination node,
and yosin@ landed another fix in https://codereview.chromium.org/16053005/.
BUG= 222806, 236726
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154347
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+63 lines, -66 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/5847330-2-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-and-cleanup.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-and-cleanup-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-block-merge-contents-025-expected.txt
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-select-all-002-expected.txt
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/delete-start-block-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/deleting/paste-with-transparent-background-color-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/execCommand/forward-delete-no-scroll-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/execCommand/insertHTML-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/pasteboard/select-element-1-expected.txt
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/event-input-contentEditable-expected.txt
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/script-tests/event-input-contentEditable.js
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/parser/nested-fragment-parser-crash-expected.txt
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/5272440-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-3775172-fix-expected.txt
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-block-contents-001-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-block-contents-002-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-block-contents-003-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/deleting/delete-image-004-expected.txt
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/inserting/insert-3775316-fix-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/inserting/insert-after-delete-001-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/editing/pasteboard/4076267-3-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/fast/forms/input-placeholder-visibility-3-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/win/fast/forms/textarea-placeholder-visibility-1-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/editing/CompositeEditCommand.cpp
|
View
|
|
1 chunk |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/editing/DeleteSelectionCommand.cpp
|
View
|
1
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLInputElement.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|