DescriptionMake RemoveFormat command to work with mixed editable
This patch changes assertion in |ApplyStyleCommand::removeInlineStyle()| to
consider |PositionIsBeforeChildren| as same as |PositionIsBeforeAnchor| and
|offsetInContainerNode <= 0|.
In the attached test case, |firstPositionInOrBeforeNode(next.get())| returns
|PositionIsBeforeChildren| for B element. When we don't have uneditable
element, inline styles are removed by |removeInlineStyleFromElement| for
BODY element rather than each child in BODY element. Blink doesn't go the path
contains the assertion.
BUG=388212
TEST=LayoutTests/editing/execCommand/remove-foramt-mixed-editable-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177448
Patch Set 1 #
Total comments: 5
Messages
Total messages: 9 (0 generated)
|