Make IsEditablePosition() to use Position::ComputeContainerNode()
This patch changes |IsEditablePosition()| to use |Position:: ComputeContainerNode()| instead of |Position::ParentAnchoredEquivalent()| not to incorporate |EditorIngoreContetns()|, e.g. <hr>, <img>, etc. For "<hr contenteditable>", |IsEditablePosition(<hr>@0)| returns false before this patch. After this patch, it returns true. Bug: 873088 Change-Id: Id75bd2c857dbd85e59f7795d02f3583802347060 Reviewed-on: https://chromium-review.googlesource.com/1172273Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#583457}
Showing
Please register or sign in to comment