Chromium Code Reviews
DescriptionChange 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 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||