Don't create VisiblePosition and VisibleSelection in...
Don't create VisiblePosition and VisibleSelection in FrameSelection::SelectFrameElementInParentIfFullySelected() This patch refactors the function's selection setting and validation part, so that: - It stops the problematic pattern of creating VisibleSelection before focusing parent frame, which may invalidate the VS - It no longer creates VisiblePosition and VisibleSelection for creating the selection. This is because for a frame owner element, the range [before_node, after_node] is already a canonicalized range, on which creating VP or VS is unnecessary. Bug: 657237, 897983 Change-Id: I5b046047071a4af7454cc1bfef52a457fe49d9c2 Reviewed-on: https://chromium-review.googlesource.com/c/1298179Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#603169}
Showing
Please register or sign in to comment