DescriptionIgnore visibility when checking whether Position is editable or not at DeletetSelectionCommand
This patch introduces |lastEditablePositionBeforePositionInRoot()| to get
to editable |Position| instead of |VisiblePosition| for making
DeletetSelectionCommand to work editable position regardless its visibility.
The root cause of issue 339187 is |DeleteSelectionCommand| shrinks end point of
selection range, start position is start of "bar", which is hidden editable,
and end position is "foo", which isn't editable, to editable position but
|DeleteSelectionCommand| checks both editability and visibility, then it gets
null position since end point is hidden.
BUG=339187
TEST=LayoutTests/editing/execCommand/delete-hidden-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176497
Patch Set 1 #
Total comments: 15
Patch Set 2 : 2014-06-19T01:13:17 #Patch Set 3 : 2014-06-19T03:44:02 #
Messages
Total messages: 8 (0 generated)
|