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

Issue 2740893003: Simplify directional selection check in FrameSelection::moveCaretSelection() (Closed)

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

Description

Simplify directional selection check in FrameSelection::moveCaretSelection() This patch replaces FrameSeleciton::computeVisibleSelectionInDOMTree().isDirectional() to FrameSeleciton::selectionInDOMTree().isDirectional() since visible position normalization does not affect selection directional, to simplify source code for improving code health. BUG=698633 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2740893003 Cr-Commit-Position: refs/heads/master@{#456020} Committed: https://chromium.googlesource.com/chromium/src/+/33aee2483346831a1881aeedc837cb5bc6cbe97c

Patch Set 1 : 2017-03-10T10:07:02 #

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

Messages

Total messages: 15 (9 generated)
yosin_UTC9
PTAL
3 years, 9 months ago (2017-03-10 03:39:04 UTC) #7
tkent
lgtm
3 years, 9 months ago (2017-03-10 07:54:30 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/2740893003/1
3 years, 9 months ago (2017-03-10 07:54:42 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/33aee2483346831a1881aeedc837cb5bc6cbe97c
3 years, 9 months ago (2017-03-10 07:59:40 UTC) #13
RE66
On 2017/03/10 07:59:40, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
3 years, 9 months ago (2017-03-10 11:19:58 UTC) #14
Xiaocheng
3 years, 9 months ago (2017-03-10 19:01:39 UTC) #15
Message was sent while issue was closed.
On 2017/03/10 at 11:19:58, RonEfrati wrote:
> On 2017/03/10 07:59:40, commit-bot: I haz the power wrote:
> > Committed patchset #1 (id:1) as
> >
https://chromium.googlesource.com/chromium/src/+/33aee2483346831a1881aeedc837...
> 
> It has no code simplification benefits and it might risky assumption 
> that "visible position normalization does not affect selection directional" m
it may change in feature
> 
> Over engineering

If you think this patch breaks anything, please file a bug at crbug.com with a
concrete example of what it breaks.

Powered by Google App Engine
This is Rietveld 408576698