DescriptionDon't inherit block style if text is inserted after paragraph selection.
It is reported that, under some condition, an unexpected <div> is inserted
when text is inserted after a paragraph is selected. This was caused by
InsertText::doApply() adjusting the text style according to the current typing
style after the insertion.
This patch clears block properties from the typing style if the selection ends
at the start of a block.
Additionally, this patch fixes another issue in DeleteSelectionCommand, which
may erroneously insert a placeholder <br> if the return value of
VisiblePosition::previous() or next() is a null VisiblePosition.
BUG=349531
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170157
Patch Set 1 #
Total comments: 3
Patch Set 2 : Use Selection.collapse(). #
Messages
Total messages: 18 (0 generated)
|