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

Issue 2940293002: Introduce HasVisibleFirstLetter() for CanBeBackwardCaretPosition() (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

Introduce HasVisibleFirstLetter() for CanBeBackwardCaretPosition() This patch Introduces |HasVisibleFirstLetter()| to simplify if-statements in for-loop of CanBeBackwardCaretPosition() for improving readability. BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2940293002 Cr-Commit-Position: refs/heads/master@{#480016} Committed: https://chromium.googlesource.com/chromium/src/+/22fc506b67c1bc65dead0bd636e84d1a616b9986

Patch Set 1 : 2017-06-16T15:29:55 #

Total comments: 2

Patch Set 2 : 2017-06-16T16:57:17 #

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

Messages

Total messages: 17 (11 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-16 07:44:38 UTC) #5
yoichio
https://codereview.chromium.org/2940293002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2940293002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1467 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1467: bool IsVisibleFirstLetter(const LayoutText& text_layout_object) { Function name is "Has"VisibleFirstLetter ...
3 years, 6 months ago (2017-06-16 07:48:50 UTC) #6
yosin_UTC9
PTAL Rename to HasVisibleFirstLetter() https://codereview.chromium.org/2940293002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2940293002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1467 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1467: bool IsVisibleFirstLetter(const LayoutText& text_layout_object) { ...
3 years, 6 months ago (2017-06-16 07:58:18 UTC) #10
yoichio
lgtm
3 years, 6 months ago (2017-06-16 08:57:22 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/2940293002/20001
3 years, 6 months ago (2017-06-16 08:57:52 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 11:07:19 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/22fc506b67c1bc65dead0bd636e8...

Powered by Google App Engine
This is Rietveld 408576698