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

Issue 2351103002: Prune CreateVisiblePositionDeprecated from Editor::canDeleteRange (Closed)

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

Description

Prune CreateVisiblePositionDeprecated from Editor::canDeleteRange Editor::canDeleteRange tries to create VisiblePositions when called with a collapsed range, but the function is only called with a non-collapsed range. This patch simply removes the dead code for handling collapsed range and get rid of the creation of VisiblePositions. BUG=647219 Committed: https://crrev.com/0a91d0e81b21800a4c603fb46db2b7648c11ffda Cr-Commit-Position: refs/heads/master@{#419712}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 1 chunk +4 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (12 generated)
Xiaocheng
PTAL.
4 years, 3 months ago (2016-09-20 04:21:05 UTC) #4
yosin_UTC9
lgtm https://codereview.chromium.org/2351103002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2351103002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp#newcode285 third_party/WebKit/Source/core/editing/Editor.cpp:285: bool Editor::canDeleteRange(const EphemeralRange& range) const Since |canDeleteRange()| is ...
4 years, 3 months ago (2016-09-20 07:58:40 UTC) #7
Xiaocheng
Thanks for the review! https://codereview.chromium.org/2351103002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2351103002/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp#newcode285 third_party/WebKit/Source/core/editing/Editor.cpp:285: bool Editor::canDeleteRange(const EphemeralRange& range) const ...
4 years, 3 months ago (2016-09-20 08:12:35 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/2351103002/20001
4 years, 3 months ago (2016-09-20 10:01:29 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-20 10:06:38 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 10:08:25 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0a91d0e81b21800a4c603fb46db2b7648c11ffda
Cr-Commit-Position: refs/heads/master@{#419712}

Powered by Google App Engine
This is Rietveld 408576698