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

Issue 2388703002: Make DragCaretController store PositionWithAffinity instead of VisiblePosition (Closed)

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

Description

Make DragCaretController store PositionWithAffinity instead of VisiblePosition DragCaretController is an on-stack object that stores a VisiblePosition and may inspect properties of the VisiblePosition even after it is invalidated. This patch fixes it by making DragCaretController store a PositionWithAffinity instead. This patch is a preparation of pruning createVisibleSelectionDeprecated from DragController: https://codereview.chromium.org/2386083002 BUG=648949, 651373 Committed: https://crrev.com/0895689a9cf3613ea07cd1a05ce4c6d32d6d411c Cr-Commit-Position: refs/heads/master@{#422395}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -13 lines) Patch
M third_party/WebKit/Source/core/editing/DragCaretController.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DragCaretController.cpp View 4 chunks +12 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (8 generated)
Xiaocheng
PTAL. By this patch we can eliminate one source of invalid VP.
4 years, 2 months ago (2016-10-03 08:14:59 UTC) #5
yosin_UTC9
lgtm lgtm This patch is also a preparation of http://crrev.com/1958093002, Postpone visible canonicalization for FrameSelection.
4 years, 2 months ago (2016-10-03 09:26:54 UTC) #9
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/2388703002/1
4 years, 2 months ago (2016-10-03 09:27:13 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-03 09:32:29 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 09:34:43 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0895689a9cf3613ea07cd1a05ce4c6d32d6d411c
Cr-Commit-Position: refs/heads/master@{#422395}

Powered by Google App Engine
This is Rietveld 408576698