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

Issue 2901263002: Introduce SelectionPaintRange in LayoutSelection (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 SelectionPaintRange in LayoutSelection SelectionPaintRange has members of |selection_start_|,|selection_end_, |selection_start_pos_| and |selection_end_pos_| which LayoutSelection had directly. BUG=708453 TEST=No change in behavior Review-Url: https://codereview.chromium.org/2901263002 Cr-Commit-Position: refs/heads/master@{#474909} Committed: https://chromium.googlesource.com/chromium/src/+/e7eadd47df235c4a2b583e12e56279022c9bc944

Patch Set 1 #

Total comments: 15

Patch Set 2 : Make SelectionPaintRange immutable #

Total comments: 4

Patch Set 3 : Introduce IsNull() #

Total comments: 12

Patch Set 4 : Add null check #

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

Messages

Total messages: 40 (26 generated)
yoichio
3 years, 7 months ago (2017-05-24 07:36:05 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode181 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:181: DCHECK(new_range.start_layout_object_); Once ctor has DCHECK's for members, we don't ...
3 years, 7 months ago (2017-05-24 08:38:47 UTC) #8
yoichio
PTAL https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode181 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:181: DCHECK(new_range.start_layout_object_); On 2017/05/24 08:38:46, yosin_UTC9 wrote: > Once ...
3 years, 7 months ago (2017-05-24 09:09:29 UTC) #9
yosin_UTC9
https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode181 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:181: DCHECK(new_range.start_layout_object_); On 2017/05/24 at 09:09:29, yoichio wrote: > On ...
3 years, 7 months ago (2017-05-24 09:31:18 UTC) #12
yoichio
https://codereview.chromium.org/2901263002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/20001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode204 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:204: DCHECK(new_range != SelectionPaintRange()); On 2017/05/24 09:31:18, yosin_UTC9 wrote: > ...
3 years, 7 months ago (2017-05-25 02:00:36 UTC) #17
yosin_UTC9
https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode45 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:45: if (start_layout_object_ == end_layout_object_) nit: early-return style is better. ...
3 years, 7 months ago (2017-05-25 04:29:16 UTC) #20
yoichio
https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode45 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:45: if (start_layout_object_ == end_layout_object_) On 2017/05/25 04:29:15, yosin_UTC9 wrote: ...
3 years, 7 months ago (2017-05-25 08:29:04 UTC) #28
yosin_UTC9
https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2901263002/diff/40001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode213 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:213: if (runner != range.StartLayoutObject() && On 2017/05/25 at 08:29:03, ...
3 years, 7 months ago (2017-05-25 09:40:31 UTC) #29
yoichio
> > Acknowledged. > > What do you mean "Acknowledged"? I would like to introduce ...
3 years, 7 months ago (2017-05-25 10:31:07 UTC) #30
yoichio
3 years, 7 months ago (2017-05-25 10:31:15 UTC) #31
yoichio
PTAL?
3 years, 7 months ago (2017-05-26 02:09:00 UTC) #34
yosin_UTC9
lgtm
3 years, 7 months ago (2017-05-26 04:42:39 UTC) #36
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/2901263002/80001
3 years, 7 months ago (2017-05-26 04:43:16 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 04:49:19 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/e7eadd47df235c4a2b583e12e562...

Powered by Google App Engine
This is Rietveld 408576698