Make "Undo" command to restore selection after validating with the latest Layout tree
This patch makes |VisibleSelection::validatePositionsIfNeeded()| to validate
selection if positions of selection are connected to ensure selection is
appropriate for setting to |FrameSelection|.
Before this patch, |validatePositionsIfNeeded()| attempts to validate selection
if positions of selection are connected and one of position has out of bound
offset. This causes we attempt to set selection with dirty layout tree.
This patch also updates expectation of "delete-ligature-003.html" for Mac. All platforms
generate same result after this patch.
BUG=627783
TEST=run_webkit_unit_tests --gtest_filter=VisibleSelectionTest.validatePositionsIfNeededWithShadowHost
TEST=LayoutTests/editing/deleting/delete-ligature-003.html
Review-Url: https://codereview.chromium.org/2153043002
Cr-Commit-Position: refs/heads/master@{#406819}
3 files changed