|
|
Chromium Code Reviews|
Created:
3 years, 5 months ago by yosin_UTC9 Modified:
3 years, 5 months ago Reviewers:
yoichio CC:
blink-reviews, chromium-reviews Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionRefactor SelectionController::SelectClosestWordFromHitTestResult()
This patch changes |SelectionController::SelectClosestWordFromHitTestResult()|
to use const variable for improving readability.
BUG=n/a
TEST=n/a; no behavior changes
Review-Url: https://codereview.chromium.org/2964863003
Cr-Commit-Position: refs/heads/master@{#484176}
Committed: https://chromium.googlesource.com/chromium/src/+/574d9b1862565cd77123de42537b27faef0f9bc0
Patch Set 1 : 2017-07-04T13:06:21 #
Total comments: 1
Patch Set 2 : 2017-07-04T18:47:54 const VisbileSelectionInFlatTree #Messages
Total messages: 20 (14 generated)
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 2017-07-04T13:06:21 BUG= 2017-07-04T13:06:17 ========== to ========== Refactor SelectionController::SelectClosestWordFromHitTestResult() This patch changes |SelectionController::SelectClosestWordFromHitTestResult()| to limit scope of variable for improving readability. Note: Since |new_selection| is modified with |AppendTrailingWhitespace()| laster, we can't use const variable. BUG=n/a TEST=n/a; no behavior changes ==========
yosin@chromium.org changed reviewers: + yoichio@chromium.org
PTAL
https://codereview.chromium.org/2964863003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/2964863003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/SelectionController.cpp:531: new_selection.AppendTrailingWhitespace(); How about making AppendTrailingWhitespace() const and return VS like javascript string functions?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Refactor SelectionController::SelectClosestWordFromHitTestResult() This patch changes |SelectionController::SelectClosestWordFromHitTestResult()| to limit scope of variable for improving readability. Note: Since |new_selection| is modified with |AppendTrailingWhitespace()| laster, we can't use const variable. BUG=n/a TEST=n/a; no behavior changes ========== to ========== Refactor SelectionController::SelectClosestWordFromHitTestResult() This patch changes |SelectionController::SelectClosestWordFromHitTestResult()| to use const variable for improving readability. BUG=n/a TEST=n/a; no behavior changes ==========
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL Utilize const variable since VisibleSelection::AppendTrailingWhitespace() is changed to const function.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1499219581126200,
"parent_rev": "029734fda5d49ccebc8fd64f1e4ff1bab1db1fe6", "commit_rev":
"574d9b1862565cd77123de42537b27faef0f9bc0"}
Message was sent while issue was closed.
Description was changed from ========== Refactor SelectionController::SelectClosestWordFromHitTestResult() This patch changes |SelectionController::SelectClosestWordFromHitTestResult()| to use const variable for improving readability. BUG=n/a TEST=n/a; no behavior changes ========== to ========== Refactor SelectionController::SelectClosestWordFromHitTestResult() This patch changes |SelectionController::SelectClosestWordFromHitTestResult()| to use const variable for improving readability. BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2964863003 Cr-Commit-Position: refs/heads/master@{#484176} Committed: https://chromium.googlesource.com/chromium/src/+/574d9b1862565cd77123de42537b... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/574d9b1862565cd77123de42537b... |
