Reset SelectionState w/o propagation when clear old SeletionState.
We clear old selected but not selected LayoutObject's SelectionState to kNone using LayoutObject::SetSelectionStateIfNeeded(). However the function calls virtual LayoutObject::SetSelectionState(), which change containing blocks' SelectionState. This causes inconsistency that marked not kNone LayoutObject can accidentally marked kNone. This patch changes it to call non virtual LayoutObject::SetSelectionState() and assign kNone SelectionState to only target old selected LayoutObjects. Bug: 739062 Change-Id: I9ca736de43a2a982b1e29a1607325a1b77e3c35f Reviewed-on: https://chromium-review.googlesource.com/748841 Commit-Queue: Yoichi Osato <yoichio@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#513096}
Showing
Please register or sign in to comment