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

Issue 2904813006: Change SelectionModifier::ModifyMovingLeft() not to use redundant local variable (Closed)

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

Description

Change SelectionModifier::ModifyMovingLeft() not to use redundant local variable This patch replaces redundant local variable |pop| with |return| statement in |SelectionModifier::ModifyMovingLeft()| to simplify and switches then-clause and else-clause to reduce indentation for improving code health. This patch also adds |NOTREACHED()| to catch unexpected cases. This patch is a preparation of adopting |SelectionModifier| to Layout NG. BUG=707656 TEST=n/a; Review-Url: https://codereview.chromium.org/2904813006 Cr-Commit-Position: refs/heads/master@{#475071} Committed: https://chromium.googlesource.com/chromium/src/+/92f32265bc3c70ee7f5e75993207fc72e91d2789

Patch Set 1 : 2017-05-26T19:15:29 #

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

Messages

Total messages: 15 (11 generated)
yosin_UTC9
PTAL Please click [Commit] if this patch is OK to commit. Thanks!
3 years, 7 months ago (2017-05-26 10:19:32 UTC) #5
Xiaocheng
lgtm
3 years, 7 months ago (2017-05-26 18:37:55 UTC) #11
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/2904813006/1
3 years, 7 months ago (2017-05-26 18:38:44 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 18:43:32 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/92f32265bc3c70ee7f5e75993207...

Powered by Google App Engine
This is Rietveld 408576698