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

Issue 1262503010: Get rid of a redundant createLegacyEditingPosition() call in PositionAlgorithm<Strategy>::upstream() (Closed)

Created:
5 years, 4 months ago by yosin_UTC9
Modified:
5 years, 4 months ago
Reviewers:
tkent, yoichio, hajimehoshi
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Get rid of a redundant createLegacyEditingPosition() call in PositionAlgorithm<Strategy>::upstream() |createLegacyEditingPosition()|, which returns non-legacy editing position if anchor node returns false for |editingIgnoresContent(node)|, call at L845 is redundant because it takes a node object, which is |!editingIgnoresContent()| by if-statement at L835. This patch replaces a this redundant usage of |createLegacyEditingPosition()| to |PositionAlgorithm<Strategy>| constructor for improving code health. This patch is a similar to http://crrev.com/1266413003, which replaces |createLegacyEditingPosition()| in |PositionAlgorithm<Strategy>::downstream()|. This patch is a preparation of getting rid of legacy editing position. BUG=513114 TEST=n/a; no behavior changes Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199954

Patch Set 1 : 2015-08-04T13:43:22 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M Source/core/dom/Position.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
yosin_UTC9
PTAL
5 years, 4 months ago (2015-08-04 05:32:11 UTC) #2
yoichio
"|createLegacyEditingPosition()| call at L845 is redundant because it takes a node object which is |!editingIgnoresContent(node)| ...
5 years, 4 months ago (2015-08-04 06:30:48 UTC) #3
yosin_UTC9
On 2015/08/04 06:30:48, yoichio wrote: > "|createLegacyEditingPosition()| call at L845 is redundant because it takes ...
5 years, 4 months ago (2015-08-04 06:36:43 UTC) #4
yoichio
lgtm
5 years, 4 months ago (2015-08-04 06:58:11 UTC) #5
tkent
lgtm
5 years, 4 months ago (2015-08-04 07:14:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262503010/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262503010/1
5 years, 4 months ago (2015-08-04 07:14:36 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 07:17:36 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199954

Powered by Google App Engine
This is Rietveld 408576698