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

Issue 2386083002: Prune createVisibleSelectionDeprecated from DragController (Closed)

Created:
4 years, 2 months ago by Xiaocheng
Modified:
4 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, chromium-reviews, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prune createVisibleSelectionDeprecated from DragController This patch prunes createVisibleSelectionDeprecated from DragController by either having an explicit layout update before each call site, or confirming that the layout is already clean. Note: Layout is clean at the call site in |dispatchTextInputEventFor()| because it's called directly after a hit test, which is performed in |elementUnderMouse()|. BUG=651373 Committed: https://crrev.com/4e348b48e7e058f44d359263b750bb5412ab932a Cr-Commit-Position: refs/heads/master@{#423036}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add DCHECK and comments about clean layout #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M third_party/WebKit/Source/core/page/DragController.cpp View 1 4 chunks +22 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
Xiaocheng
PTAL.
4 years, 2 months ago (2016-10-03 09:31:41 UTC) #6
tkent
https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/core/page/DragController.cpp File third_party/WebKit/Source/core/page/DragController.cpp (right): https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/core/page/DragController.cpp#newcode482 third_party/WebKit/Source/core/page/DragController.cpp:482: createVisibleSelection(m_page->dragCaretController().caretPosition())); Please explain why we can use non-deprecated version ...
4 years, 2 months ago (2016-10-03 23:37:09 UTC) #7
Xiaocheng
On 2016/10/03 at 23:37:09, tkent wrote: > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/core/page/DragController.cpp > File third_party/WebKit/Source/core/page/DragController.cpp (right): > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/core/page/DragController.cpp#newcode482 ...
4 years, 2 months ago (2016-10-04 01:07:58 UTC) #9
tkent
On 2016/10/04 at 01:07:58, xiaochengh wrote: > On 2016/10/03 at 23:37:09, tkent wrote: > > ...
4 years, 2 months ago (2016-10-04 01:25:12 UTC) #10
Xiaocheng
On 2016/10/04 at 01:25:12, tkent wrote: > On 2016/10/04 at 01:07:58, xiaochengh wrote: > > ...
4 years, 2 months ago (2016-10-04 06:54:02 UTC) #11
tkent
> DragController.cpp mostly uses ASSERT instead of DCHECK. Is there a reason? No one replaces ...
4 years, 2 months ago (2016-10-04 07:17:02 UTC) #12
Xiaocheng
DCHECK added. PTAL.
4 years, 2 months ago (2016-10-04 23:48:39 UTC) #17
tkent
lgtm
4 years, 2 months ago (2016-10-05 00:08:44 UTC) #18
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/2386083002/20001
4 years, 2 months ago (2016-10-05 01:17:38 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-05 01:23:19 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 01:26:38 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4e348b48e7e058f44d359263b750bb5412ab932a
Cr-Commit-Position: refs/heads/master@{#423036}

Powered by Google App Engine
This is Rietveld 408576698