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

Issue 323983006: Make SurroundingText work for a Range. (Closed)

Created:
6 years, 6 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 6 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make SurroundingText work for a Range. It generalize the algorithm to find the surrounding text to be able to work with a starting position and an ending position. The goal is to be able to get the surrounding text arround the current selection. BUG=330238 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176015

Patch Set 1 #

Total comments: 3

Patch Set 2 : apply review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -23 lines) Patch
M Source/core/editing/SurroundingText.h View 1 1 chunk +7 lines, -2 lines 0 comments Download
M Source/core/editing/SurroundingText.cpp View 1 4 chunks +31 lines, -9 lines 0 comments Download
M Source/core/editing/SurroundingTextTest.cpp View 11 chunks +122 lines, -11 lines 0 comments Download
M Source/web/WebSurroundingText.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
mlamouri (slow - plz ping)
I've split up the change from the Blink API exposure so we can discuss the ...
6 years, 6 months ago (2014-06-10 11:15:20 UTC) #1
yosin_UTC9
ACK https://codereview.chromium.org/323983006/diff/1/Source/core/editing/SurroundingText.cpp File Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/323983006/diff/1/Source/core/editing/SurroundingText.cpp#newcode96 Source/core/editing/SurroundingText.cpp:96: m_startOffsetInContent = Range::create(*document, backwardsRange->endPosition(), startPosition)->text().length(); nit: Can we ...
6 years, 6 months ago (2014-06-11 01:04:29 UTC) #2
mlamouri (slow - plz ping)
Thank you for the review yosi@. tkent@, does the ACK need that I need a ...
6 years, 6 months ago (2014-06-11 09:19:54 UTC) #3
Yuta Kitamura
LGTM with one obvious nitpick on function name https://codereview.chromium.org/323983006/diff/1/Source/core/editing/SurroundingText.cpp File Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/323983006/diff/1/Source/core/editing/SurroundingText.cpp#newcode56 Source/core/editing/SurroundingText.cpp:56: void ...
6 years, 6 months ago (2014-06-11 09:22:57 UTC) #4
mlamouri (slow - plz ping)
Thanks! :) I've applied all your comments. Tamura-san, could you have a look at the ...
6 years, 6 months ago (2014-06-11 10:10:57 UTC) #5
tkent
lgtm. yosi, what do you mean by "ACK"?
6 years, 6 months ago (2014-06-12 00:27:53 UTC) #6
yosin_UTC9
On 2014/06/12 00:27:53, tkent wrote: > lgtm. > > yosi, what do you mean by ...
6 years, 6 months ago (2014-06-12 00:51:12 UTC) #7
Yuta Kitamura
(I actually don't know what exactly "ACK" means... Yoshi is the only person I know ...
6 years, 6 months ago (2014-06-12 06:31:06 UTC) #8
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-12 08:55:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/323983006/20001
6 years, 6 months ago (2014-06-12 08:56:01 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 10:07:14 UTC) #11
Message was sent while issue was closed.
Change committed as 176015

Powered by Google App Engine
This is Rietveld 408576698