| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 46f0e4e9db3754df5c7ad65b9dba9c631ad73c87..34cc660cf18758c42e0651a6a694cc37ce4dbbfc 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -311,7 +311,7 @@ bool Editor::canDeleteRange(const EphemeralRange& range) const
|
| VisiblePosition start = createVisiblePosition(range.startPosition());
|
| VisiblePosition previous = previousPositionOf(start);
|
| // FIXME: We sometimes allow deletions at the start of editable roots, like when the caret is in an empty list item.
|
| - if (previous.isNull() || previous.deepEquivalent().anchorNode()->rootEditableElement() != startContainer->rootEditableElement())
|
| + if (previous.isNull() || rootEditableElement(*previous.deepEquivalent().anchorNode()) != rootEditableElement(*startContainer))
|
| return false;
|
| }
|
| return true;
|
|
|