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

Issue 2623053006: Get rid of CaretBase::m_caretLocalRect (Closed)

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

Description

Get rid of CaretBase::m_caretLocalRect This patch gets rid of |CaretBase::m_caretLocalRect| to reduce number of states in |CaretBase| to simplify class hiarachity for improving code health. After this patch, |CaretBase| represents |DisplayItemClient| for caret. Following patch will rename |CaretBase| to |DisplayCaretItemClient| and |DragCaretController|, which should rename to |DragCaret| is derived from |DisplayCaretItemClient| and makes |DisplayCaretItemClient| had no public member except for destructor. This patch is a preparation of [1] [1] http://crrev.com/1958093002 On-demand visible selection canonicalizataion BUG=680384 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2623053006 Cr-Commit-Position: refs/heads/master@{#443207} Committed: https://chromium.googlesource.com/chromium/src/+/05fd6942317394a4dbc4aae9fddc5511bb1fe00b

Patch Set 1 #

Total comments: 2

Patch Set 2 : 2017-01-12T19:03:43 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -67 lines) Patch
M third_party/WebKit/Source/core/editing/CaretBase.h View 1 2 chunks +18 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/editing/CaretBase.cpp View 1 4 chunks +26 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DragCaretController.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DragCaretController.cpp View 2 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameCaret.cpp View 3 chunks +15 lines, -16 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
yosin_UTC9
PTAL
3 years, 11 months ago (2017-01-12 04:58:40 UTC) #7
Xiaocheng
Is my understanding correct? FrameCaret doesn't actually need the stored value of CaretBase::m_caretLocalRect, since FrameCaret ...
3 years, 11 months ago (2017-01-12 08:21:42 UTC) #8
Xiaocheng
lgtm
3 years, 11 months ago (2017-01-12 09:19:28 UTC) #9
yoichio
Cool! lgtm https://codereview.chromium.org/2623053006/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp File third_party/WebKit/Source/core/editing/CaretBase.cpp (right): https://codereview.chromium.org/2623053006/diff/1/third_party/WebKit/Source/core/editing/CaretBase.cpp#newcode106 third_party/WebKit/Source/core/editing/CaretBase.cpp:106: LayoutRect caretLocalRect = nit: const LayoutRect
3 years, 11 months ago (2017-01-12 09:22:22 UTC) #10
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/2623053006/20001
3 years, 11 months ago (2017-01-12 10:04:54 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 11:26:21 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/05fd6942317394a4dbc4aae9fddc...

Powered by Google App Engine
This is Rietveld 408576698