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

Issue 359593002: Selection should be updated after node is moved to another document (Closed)

Created:
6 years, 6 months ago by tasak
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

FrameSelection::setSelection should validate a given VisibleSelection. When executing editing commands, endingSelection is valid. However, if undo some commands, endingSelection might be invalid and FrameSelection might be updated by the invalid selection. i.e. the selection might be owned by another document without any frames. BUG=368978 TEST=Source/core/editing/FrameSelectionTest Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179003

Patch Set 1 : WIP #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Updated TestExpectations #

Patch Set 6 : Fixed FrameSelectionTest.cpp #

Total comments: 22

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -1 line) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 3 4 5 6 2 chunks +23 lines, -1 line 0 comments Download
A Source/core/editing/FrameSelectionTest.cpp View 1 2 3 4 5 6 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
tasak
I'm still working in progress. However, would you check the WIP patch? I'm afraid that ...
6 years, 6 months ago (2014-06-26 11:05:50 UTC) #1
yosin_UTC9
Thanks for quick work! Unfortunately, FrameSelection::firstRange() isn't out friend. It doesn't work as we expect. ...
6 years, 5 months ago (2014-06-27 01:39:24 UTC) #2
yosin_UTC9
Actual implementation should call VisibleSelection::setWithoutValidation(base, extent) rather than using VisibleSelection ctor, because VS ctor calls ...
6 years, 5 months ago (2014-06-27 01:59:24 UTC) #3
tasak
On 2014/06/27 01:59:24, Yosi_UTC9 wrote: > Actual implementation should call VisibleSelection::setWithoutValidation(base, > extent) rather than ...
6 years, 5 months ago (2014-07-01 09:17:32 UTC) #4
tasak
Would you review this CL?
6 years, 5 months ago (2014-07-09 01:57:09 UTC) #5
yosin_UTC9
LGTM w/ nits Add OWNERS for committing. https://codereview.chromium.org/359593002/diff/60001/Source/core/editing/FrameSelectionTest.cpp File Source/core/editing/FrameSelectionTest.cpp (right): https://codereview.chromium.org/359593002/diff/60001/Source/core/editing/FrameSelectionTest.cpp#newcode1 Source/core/editing/FrameSelectionTest.cpp:1: /* nit: ...
6 years, 5 months ago (2014-07-09 03:27:35 UTC) #6
yosin_UTC9
On 2014/07/09 03:27:35, Yosi_UTC9 wrote: > LGTM w/ nits > > Add OWNERS for committing. ...
6 years, 5 months ago (2014-07-09 03:32:35 UTC) #7
tasak
Thank you for reviewing. On 2014/07/09 03:32:35, Yosi_UTC9 wrote: > On 2014/07/09 03:27:35, Yosi_UTC9 wrote: ...
6 years, 5 months ago (2014-07-10 03:02:50 UTC) #8
tasak
https://codereview.chromium.org/359593002/diff/60001/Source/core/editing/FrameSelectionTest.cpp File Source/core/editing/FrameSelectionTest.cpp (right): https://codereview.chromium.org/359593002/diff/60001/Source/core/editing/FrameSelectionTest.cpp#newcode1 Source/core/editing/FrameSelectionTest.cpp:1: /* On 2014/07/09 03:27:35, Yosi_UTC9 wrote: > nit: You ...
6 years, 5 months ago (2014-07-10 03:16:02 UTC) #9
yosin_UTC9
SLGTM
6 years, 5 months ago (2014-07-10 03:48:02 UTC) #10
Yuta Kitamura
Mostly looking fine, just spotted some minor issues. https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelection.cpp#newcode1863 Source/core/editing/FrameSelection.cpp:1863: return ...
6 years, 5 months ago (2014-07-14 10:04:43 UTC) #11
tkent
https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelectionTest.cpp File Source/core/editing/FrameSelectionTest.cpp (right): https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelectionTest.cpp#newcode42 Source/core/editing/FrameSelectionTest.cpp:42: HTMLDocument* m_document; This should be RawPtrWillBePersistent<HTMLDocument> https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelectionTest.cpp#newcode43 Source/core/editing/FrameSelectionTest.cpp:43: RefPtr<Text> ...
6 years, 5 months ago (2014-07-15 00:41:22 UTC) #12
tasak
Thank you for reviewing. https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/359593002/diff/100001/Source/core/editing/FrameSelection.cpp#newcode1863 Source/core/editing/FrameSelection.cpp:1863: return newSelection; On 2014/07/14 10:04:43, ...
6 years, 5 months ago (2014-07-25 09:23:35 UTC) #13
Yuta Kitamura
lgtm
6 years, 5 months ago (2014-07-25 09:53:55 UTC) #14
tasak
The CQ bit was checked by tasak@google.com
6 years, 4 months ago (2014-07-28 04:04:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/359593002/120001
6 years, 4 months ago (2014-07-28 04:04:46 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 04:08:38 UTC) #17
Message was sent while issue was closed.
Change committed as 179003

Powered by Google App Engine
This is Rietveld 408576698