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

Issue 2952173002: Refactor SelectionController::SelectClosestMisspellingFromHitTestResult() (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

Refactor SelectionController::SelectClosestMisspellingFromHitTestResult() This patch changes |SelectClosestMisspellingFromHitTestResult()| in |SelectionController| class to utilize early-return style for improving readability. # Details |SelectClosestMisspellingFromHitTestResult() calls |UpdateSelectionForMouseDownDispatchingSelectStart()| with non-null |VisibleSelectionInFlatTree| if |pos.IsNotNull()| and |marker != nullptr| are true, other wise this function calls null |VisibleSelectionInFlatTree|. Because |VisibleSelectionInFlatTree::AppendTrailingWhitespace()| appends a whitespace only if selection is range, we don't need to call it for null selection. BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2952173002 Cr-Commit-Position: refs/heads/master@{#481751} Committed: https://chromium.googlesource.com/chromium/src/+/5a5d5754d9d90c8869f2450c89e0ed0285242ab1

Patch Set 1 : 2017-06-22T17:44:33 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -15 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 chunk +24 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (12 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-22 09:47:54 UTC) #8
Xiaocheng
lgtm
3 years, 6 months ago (2017-06-22 18:41:43 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/2952173002/1
3 years, 6 months ago (2017-06-23 00:50:47 UTC) #13
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 00:55:35 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5a5d5754d9d90c8869f2450c89e0...

Powered by Google App Engine
This is Rietveld 408576698