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

Issue 2934773002: Unify implementation of LeftPositionOf() and RightPositionOf() (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

Utilize one template to implement LeftPositionOf() and RightPositionOf() This patch introduces |TraverseAlgorhtim()| and |TraverseInternalAlgorhtim()| to unify |LeftPositoinOf()| and |RightPositionOf()| implementations since these functions use identical algorithm except for except for traverse direction to avoid source code duplication for improving code health. BUG=707656 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2934773002 Cr-Commit-Position: refs/heads/master@{#478933} Committed: https://chromium.googlesource.com/chromium/src/+/3de8b2e022a8448fec77e19e47aa2d3dd769508f

Patch Set 1 : 2017-06-12T18:56:42 #

Total comments: 4

Patch Set 2 : 2017-06-13T15:43:11 #

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

Messages

Total messages: 19 (14 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-12 09:58:45 UTC) #9
Xiaocheng
lgtm with a nit. https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp File third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp (right): https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp#newcode186 third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:186: // TODO(yosin): We should rename ...
3 years, 6 months ago (2017-06-12 18:28:15 UTC) #12
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp File third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp (right): https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp#newcode186 third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:186: // TODO(yosin): We should rename ...
3 years, 6 months ago (2017-06-13 06:44:46 UTC) #13
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/2934773002/40001
3 years, 6 months ago (2017-06-13 06:44:58 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 08:21:24 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3de8b2e022a8448fec77e19e47aa...

Powered by Google App Engine
This is Rietveld 408576698