|
|
Chromium Code Reviews|
Created:
3 years, 6 months ago by yosin_UTC9 Modified:
3 years, 6 months ago CC:
blink-reviews, chromium-reviews Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionUtilize 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 #Messages
Total messages: 19 (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-06-12T18:35:38 BUG=707656 2017-06-12T18:35:07 ========== to ========== 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 reduce source code for improving code health. BUG=707656 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...
Patchset #1 (id:1) has been deleted
Description was changed from ========== 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 reduce source code for improving code health. BUG=707656 TEST=n/a; no behavior changes ========== to ========== 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 ==========
yosin@chromium.org changed reviewers: + xiaochengh@chromium.org, yoichio@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm with a nit. https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp (right): https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:186: // TODO(yosin): We should rename local variables in nit: And also comments. https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:243: // Overshot to the left. Like this.
Thanks for reviewing! Committing... https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp (right): https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:186: // TODO(yosin): We should rename local variables in On 2017/06/12 at 18:28:15, Xiaocheng wrote: > nit: And also comments. Done. https://codereview.chromium.org/2934773002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp:243: // Overshot to the left. On 2017/06/12 at 18:28:15, Xiaocheng wrote: > Like this. Good catch!
The CQ bit was checked by yosin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from xiaochengh@chromium.org Link to the patchset: https://codereview.chromium.org/2934773002/#ps40001 (title: "2017-06-13T15:43:11")
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": 40001, "attempt_start_ts": 1497336290903510,
"parent_rev": "b3c5fc7190a4cf828bf543444d1d76a44067e2a0", "commit_rev":
"3de8b2e022a8448fec77e19e47aa2d3dd769508f"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/3de8b2e022a8448fec77e19e47aa... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/3de8b2e022a8448fec77e19e47aa... |
