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

Issue 2437873008: Get rid of flat tree version of createVisibleSelection() taking two VisiblePosition (Closed)

Created:
4 years, 2 months ago by yosin_UTC9
Modified:
4 years, 1 month ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
aboxhall, aboxhall+watch_chromium.org, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dmazzoni, krit, dtseng+watch_chromium.org, f(malita), fs, groby+blinkspell_chromium.org, gyuyoung2, haraken, je_julie, kouhei+svg_chromium.org, nektar+watch_chromium.org, nektarios, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, timvolodine, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of flat tree version of createVisibleSelection() taking two VisiblePosition This patch gets rid of flat tree version of |createVisibleSelection()| taking two |VisiblePosition| by replacing with |SelectionInDOMTree| version to reduce number of overloads for improving code health. BUG=657237 TEST=n/a; no behavior changes Committed: https://crrev.com/91be04c48e4cc1ef958dc1ddbfc4cf34a8584842 Cr-Commit-Position: refs/heads/master@{#427031}

Patch Set 1 : 2016-10-21T16:03:11 #

Total comments: 28

Patch Set 2 : 2016-10-24T13:35:49 #

Total comments: 2

Patch Set 3 : 2016-10-24T16:38:25 #

Messages

Total messages: 28 (17 generated)
yosin_UTC9
PTAL Not only core/editing but also - core/svg/SVGTextContentElement.cpp - modules/accessibility/AXLayoutObject.cpp
4 years, 2 months ago (2016-10-21 08:21:00 UTC) #5
Xiaocheng
https://codereview.chromium.org/2437873008/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2437873008/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode948 third_party/WebKit/Source/core/editing/FrameSelection.cpp:948: SelectionInDOMTree::Builder builder; Let's use setBaseAndExtentDeprecated, since having a null ...
4 years, 2 months ago (2016-10-21 11:18:36 UTC) #9
yosin_UTC9
PTAL Updated to follow review comments. https://codereview.chromium.org/2437873008/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2437873008/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode948 third_party/WebKit/Source/core/editing/FrameSelection.cpp:948: SelectionInDOMTree::Builder builder; On ...
4 years, 1 month ago (2016-10-24 06:19:45 UTC) #14
Xiaocheng
One more comment as below. https://codereview.chromium.org/2437873008/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2437873008/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode1448 third_party/WebKit/Source/core/editing/FrameSelection.cpp:1448: .setBaseAndExtent(basePosition.deepEquivalent(), Is it guaranteed ...
4 years, 1 month ago (2016-10-24 06:58:49 UTC) #15
yosin_UTC9
PTAL Update to follow review comment. https://codereview.chromium.org/2437873008/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2437873008/diff/20001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode1448 third_party/WebKit/Source/core/editing/FrameSelection.cpp:1448: .setBaseAndExtent(basePosition.deepEquivalent(), On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 07:40:17 UTC) #18
Xiaocheng
lgtm
4 years, 1 month ago (2016-10-24 08:30:22 UTC) #19
tkent
lgtm. The new code looks more complex, but I trust your decision.
4 years, 1 month ago (2016-10-24 08:39:42 UTC) #20
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/2437873008/40001
4 years, 1 month ago (2016-10-24 09:11:15 UTC) #24
yosin_UTC9
On 2016/10/24 at 08:39:42, tkent wrote: > lgtm. > > The new code looks more ...
4 years, 1 month ago (2016-10-24 09:16:25 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-24 09:25:58 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 09:27:52 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/91be04c48e4cc1ef958dc1ddbfc4cf34a8584842
Cr-Commit-Position: refs/heads/master@{#427031}

Powered by Google App Engine
This is Rietveld 408576698