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

Issue 2906263002: Change SelectionModifier::ModifyMovingRight() not to use redundant local variable (Closed)

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

Description

Change SelectionModifier::ModifyMovingRight() not to use redundant local variable This patch replaces redundant local variable |pop| with |return| statement in |SelectionModifier::ModifyMovingRight()| 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. Note: This patch is similar to the patch[1]. [1] http://crrev.com/2904813006: Change SelectionModifier::ModifyMovingLeft() not to use redundant local variable BUG=707656 TEST=n/a; Review-Url: https://codereview.chromium.org/2906263002 Cr-Commit-Position: refs/heads/master@{#475430} Committed: https://chromium.googlesource.com/chromium/src/+/362c1c955a0893adbbbbd53395c1f174df9f54c7

Patch Set 1 : 2017-05-29T14:25:06 #

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

Messages

Total messages: 13 (9 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-05-29 06:42:49 UTC) #5
yoichio
lgtm
3 years, 6 months ago (2017-05-30 04:47:47 UTC) #8
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/2906263002/1
3 years, 6 months ago (2017-05-30 05:04:47 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 05:09:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/362c1c955a0893adbbbbd53395c1...

Powered by Google App Engine
This is Rietveld 408576698