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

Issue 2894383003: Split LayoutSelecton::ClearSelection() out from SetSelection() (Closed)

Created:
3 years, 7 months ago by yoichio
Modified:
3 years, 7 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split LayoutSelecton::ClearSelection() out from SetSelection() |ClearSelection()| calls |SetSelection(0, -1, 0, -1, kPaintInvalidationNewMinusOld)| but what it does is only marking old layout object selection state none and invalidating them. Just extract its step and make |SetSelection()| layout clean. BUG=708453 TEST=No change in behavior Review-Url: https://codereview.chromium.org/2894383003 Cr-Commit-Position: refs/heads/master@{#473827} Committed: https://chromium.googlesource.com/chromium/src/+/3d8a59becdfba11d9e9249f04c4ed6695e2a878b

Patch Set 1 #

Patch Set 2 : update #

Total comments: 7

Patch Set 3 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -11 lines) Patch
M third_party/WebKit/Source/core/editing/LayoutSelection.cpp View 1 2 3 chunks +28 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
yoichio
3 years, 7 months ago (2017-05-23 04:56:19 UTC) #12
yosin_UTC9
lgtm w/ small nits https://codereview.chromium.org/2894383003/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2894383003/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode216 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:216: DCHECK(start); Nice! (^_^)b https://codereview.chromium.org/2894383003/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode305 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:305: ...
3 years, 7 months ago (2017-05-23 05:29:05 UTC) #13
yoichio
https://codereview.chromium.org/2894383003/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2894383003/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode305 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:305: SelectedMap old_selected_map = On 2017/05/23 05:29:05, yosin_UTC9 wrote: > ...
3 years, 7 months ago (2017-05-23 05:43:07 UTC) #14
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/2894383003/40001
3 years, 7 months ago (2017-05-23 05:48:26 UTC) #17
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 07:26:51 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3d8a59becdfba11d9e9249f04c4e...

Powered by Google App Engine
This is Rietveld 408576698