|
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 an improvement.
NB, I tried numerous other strategies to try and more aggressively remove br
placeholders in other cases where they aren't necessary, but it ended up being a
very deep rabbit hole of editing nightmares that ultimately just wasn't worth it.
BUG= 222806, 236726
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150400
Total comments: 1
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+55 lines, -69 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
|
2 chunks |
+16 lines, -1 line |
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-3775172-fix-expected.txt
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -5 lines |
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-all-text-in-text-field-assertion-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -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
|
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
|
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/create-list-with-hr-expected.txt
|
View
|
1
2
3
4
|
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/copy-paste-content-starting-and-ending-canvas-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
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/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
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/deleting/5272440-expected.txt
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/deleting/delete-3775172-fix-expected.txt
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-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/chromium-win/editing/deleting/delete-block-contents-001-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/deleting/delete-block-contents-002-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/deleting/delete-block-contents-003-expected.txt
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/deleting/delete-image-004-expected.txt
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/execCommand/create-list-with-hr-expected.txt
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/inserting/insert-3775316-fix-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/inserting/insert-after-delete-001-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/editing/pasteboard/4076267-3-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/fast/forms/input-placeholder-visibility-3-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/platform/chromium-win/fast/forms/textarea-placeholder-visibility-1-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/editing/DeleteSelectionCommand.cpp
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLInputElement.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|