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

Issue 2874153002: Introduce CollectSelectedMap() in LayoutSelection::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

Introduce CollectSelectedMap() in LayoutSelection::SetSelection() This CL introduces local static CollectSelectedMap() from big LayoutSelection::SetSelection() and shares it to create |{new,old}_selected_map|. TEST=No change in behavior. BUG=708453 Review-Url: https://codereview.chromium.org/2874153002 Cr-Commit-Position: refs/heads/master@{#471247} Committed: https://chromium.googlesource.com/chromium/src/+/18e6b4998b080ffe6c303c85a3498dab8f55f622

Patch Set 1 #

Patch Set 2 : update #

Total comments: 14

Patch Set 3 : update #

Total comments: 8

Patch Set 4 : updat #

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

Messages

Total messages: 21 (12 generated)
yoichio
3 years, 7 months ago (2017-05-11 08:27:24 UTC) #4
yoichio
PTAL
3 years, 7 months ago (2017-05-12 01:55:54 UTC) #7
yosin_UTC9
https://codereview.chromium.org/2874153002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2874153002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode141 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:141: swap(first, other.first); nit: s/swap/std::swap/ or |first = std::move(other.first)| to ...
3 years, 7 months ago (2017-05-12 02:09:45 UTC) #8
yoichio
https://codereview.chromium.org/2874153002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2874153002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode141 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:141: swap(first, other.first); On 2017/05/12 02:09:45, yosin_UTC9 wrote: > nit: ...
3 years, 7 months ago (2017-05-12 04:37:40 UTC) #9
yosin_UTC9
https://codereview.chromium.org/2874153002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2874153002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode139 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:139: SelectedMap() {} nit: s/{}/= default/ https://codereview.chromium.org/2874153002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode144 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:144: SelectedObjectMap object_map; ...
3 years, 7 months ago (2017-05-12 05:16:12 UTC) #10
yoichio
https://codereview.chromium.org/2874153002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2874153002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode139 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:139: SelectedMap() {} On 2017/05/12 05:16:11, yosin_UTC9 wrote: > nit: ...
3 years, 7 months ago (2017-05-12 05:46:43 UTC) #11
yosin_UTC9
lgtm This code still have room of improvement on readability... https://codereview.chromium.org/2874153002/diff/60001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2874153002/diff/60001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode163 ...
3 years, 7 months ago (2017-05-12 06:00:35 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/2874153002/60001
3 years, 7 months ago (2017-05-12 06:59:02 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 08:04:32 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/18e6b4998b080ffe6c303c85a349...

Powered by Google App Engine
This is Rietveld 408576698