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