Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 2153043002: Make "Undo" command to restore selection after validating with the latest Layout tree (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/591157b28b2103a21248e0467a387ad789a37a93 Cr-Commit-Position: refs/heads/master@{#406819}

Patch Set 1 : 2016-07-15T14:35:50 #

Patch Set 2 : 2016-07-15T15:44:59 #

Patch Set 3 : 2016-07-15T18:20:51 #

Patch Set 4 : 2016-07-15T18:22:30 #

Patch Set 5 : 2016-07-21T14:24:05 #

Patch Set 6 : 2016-07-21T19:03:31 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -23 lines) Patch
M third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-003.html View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 2 3 4 3 chunks +3 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
yosin_UTC9
PTAL Once crrev.com/2163163002, which converts delete-ligature-003.html to w3c test hanress, all tests should be passed.
4 years, 5 months ago (2016-07-21 07:26:43 UTC) #21
yoichio
lgtm
4 years, 5 months ago (2016-07-21 08:21:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2153043002/80001
4 years, 5 months ago (2016-07-21 08:29:24 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/259638)
4 years, 5 months ago (2016-07-21 10:03:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2153043002/100001
4 years, 5 months ago (2016-07-21 10:04:59 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-21 11:45:42 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 11:47:43 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/591157b28b2103a21248e0467a387ad789a37a93
Cr-Commit-Position: refs/heads/master@{#406819}

Powered by Google App Engine
This is Rietveld 408576698