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

Issue 2926823002: Introduce LocalCaretRect for refactoring Local{Caret,Selection}RectPosition() (Closed)

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

Description

Introduce LocalCaretRect for refactoring Local{Caret,Selection}RectPosition() This patch introduces |LocalCaretRect| to use as return value of |Local{Caret,Selection}RectPosition()| to avoid output-parameter with utilizing const-variables for improving code health. BUG=707656 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2926823002 Cr-Commit-Position: refs/heads/master@{#478231} Committed: https://chromium.googlesource.com/chromium/src/+/c6c973e6a860ef254df119b535653b987d0e9d90

Patch Set 1 : 2017-06-07T19:07:35 #

Total comments: 10

Patch Set 2 : 2017-06-09T13:08:12 #

Total comments: 2

Patch Set 3 : 2017-06-09T15:11:53 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -124 lines) Patch
M third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp View 2 chunks +10 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionModifier.cpp View 1 chunk +13 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.h View 1 2 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 4 chunks +75 lines, -78 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp View 1 chunk +10 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-08 05:27:07 UTC) #13
Xiaocheng
https://codereview.chromium.org/2926823002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2926823002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1282 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1282: if (!node->GetLayoutObject()) We should store LayoutObject* const layout_object = ...
3 years, 6 months ago (2017-06-08 21:00:42 UTC) #14
Xiaocheng
As discussed in crrev.com/2925323004, this patch doesn't change any behavior. So, lgtm with a nit. ...
3 years, 6 months ago (2017-06-09 05:58:39 UTC) #19
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/2926823002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2926823002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1282 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1282: if (!node->GetLayoutObject()) On 2017/06/08 at ...
3 years, 6 months ago (2017-06-09 06:13:29 UTC) #20
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/2926823002/80001
3 years, 6 months ago (2017-06-09 06:13:48 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 07:52:14 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c6c973e6a860ef254df119b53565...

Powered by Google App Engine
This is Rietveld 408576698