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

Issue 307353002: Use Position instead of VisiblePosition for SurroundingText. (Closed)

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

Description

Use Position instead of VisiblePosition for SurroundingText. Using VisiblePosition has some not required performance implications. BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175788

Patch Set 1 #

Total comments: 7

Patch Set 2 : review comments #

Patch Set 3 : convert layouttests to unit tests #

Total comments: 1

Patch Set 4 : fix crash #

Total comments: 4

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -16 lines) Patch
M Source/core/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/SurroundingText.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/SurroundingText.cpp View 1 2 3 4 1 chunk +20 lines, -12 lines 0 comments Download
A Source/core/editing/SurroundingTextTest.cpp View 1 2 3 1 chunk +153 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSurroundingText.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
mlamouri (slow - plz ping)
As requested here https://codereview.chromium.org/294073005/, I have updated SurroundingText API to take a Position instead of ...
6 years, 6 months ago (2014-06-03 11:30:08 UTC) #1
yosin_UTC9
ACK Thanks for reducing editing team job! (^_^)b https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp File Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp#newcode50 Source/core/editing/SurroundingText.cpp:50: ASSERT(document); ...
6 years, 6 months ago (2014-06-04 01:04:05 UTC) #2
yosin_UTC9
https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp File Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp#newcode50 Source/core/editing/SurroundingText.cpp:50: ASSERT(document); On 2014/06/04 01:04:05, yosi wrote: > nit: We ...
6 years, 6 months ago (2014-06-04 01:13:10 UTC) #3
mlamouri (slow - plz ping)
Thank you yosi, I've applied all your review comments. https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp File Source/core/editing/SurroundingText.cpp (right): https://codereview.chromium.org/307353002/diff/1/Source/core/editing/SurroundingText.cpp#newcode50 Source/core/editing/SurroundingText.cpp:50: ...
6 years, 6 months ago (2014-06-04 09:52:12 UTC) #4
mlamouri (slow - plz ping)
Yosi, I have converted the layout tests to unit tests. I think it is better ...
6 years, 6 months ago (2014-06-04 13:48:16 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/307353002/diff/40001/Source/web/WebSurroundingText.cpp File Source/web/WebSurroundingText.cpp (right): https://codereview.chromium.org/307353002/diff/40001/Source/web/WebSurroundingText.cpp#newcode48 Source/web/WebSurroundingText.cpp:48: m_private.reset(new SurroundingText(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint)).position(), maxLength)); If I manually test this on ...
6 years, 6 months ago (2014-06-04 14:56:38 UTC) #6
mlamouri (slow - plz ping)
Yosi, I found out my problem: the range I was creating wasn't right so I ...
6 years, 6 months ago (2014-06-05 15:05:34 UTC) #7
Yuta Kitamura
Mostly looking good other than the addition of makeRange(). https://codereview.chromium.org/307353002/diff/60001/Source/core/dom/Position.cpp File Source/core/dom/Position.cpp (right): https://codereview.chromium.org/307353002/diff/60001/Source/core/dom/Position.cpp#newcode1295 Source/core/dom/Position.cpp:1295: ...
6 years, 6 months ago (2014-06-06 08:57:30 UTC) #8
mlamouri (slow - plz ping)
Thank you for the quick review! :) I applied your comments. PTAL https://codereview.chromium.org/307353002/diff/60001/Source/core/dom/Position.cpp File Source/core/dom/Position.cpp ...
6 years, 6 months ago (2014-06-06 09:23:16 UTC) #9
Yuta Kitamura
LGTM, but you still need to get an approval from someone in Source/web's OWNERS.
6 years, 6 months ago (2014-06-09 01:52:28 UTC) #10
tkent
rslgtm
6 years, 6 months ago (2014-06-09 02:02:39 UTC) #11
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-09 09:43:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/307353002/80001
6 years, 6 months ago (2014-06-09 09:43:43 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-09 10:47:20 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 11:20:04 UTC) #15
Message was sent while issue was closed.
Change committed as 175788

Powered by Google App Engine
This is Rietveld 408576698