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

Issue 2532373002: (CANCELED) Ensure before/after is within the editable in moveParagraphWithClones (Closed)

Created:
4 years ago by kojii
Modified:
4 years ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure before/after is within the editable in moveParagraphWithClones When the selection starts at the beginning of the editable host and execCommand "FormatBlock" is executed, moveParagraphWithClones computed the before the selection crossing the editing boundaries. This resulted in isEditablePosition() to fail, and aborted the editing operation. This patch ensures before and after the selection to stay within the editable host. BUG=656866

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Rebaseline #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/editing/execCommand/format-block-contenteditable-false-expected.txt View 1 2 1 chunk +3 lines, -2 lines 2 comments Download
A third_party/WebKit/LayoutTests/editing/execCommand/format_block/format-block-at-host-selected.html View 1 1 chunk +34 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
kojii
PTAL.
4 years ago (2016-11-29 10:41:48 UTC) #12
yosin_UTC9
C++ changes are looks fine. Please make tests to utilize assert_selection() for ease of maintenance. ...
4 years ago (2016-11-30 01:48:41 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2532373002/diff/40001/third_party/WebKit/LayoutTests/editing/execCommand/format-block-contenteditable-false-expected.txt File third_party/WebKit/LayoutTests/editing/execCommand/format-block-contenteditable-false-expected.txt (right): https://codereview.chromium.org/2532373002/diff/40001/third_party/WebKit/LayoutTests/editing/execCommand/format-block-contenteditable-false-expected.txt#newcode2 third_party/WebKit/LayoutTests/editing/execCommand/format-block-contenteditable-false-expected.txt:2: | <h1> On 2016/11/30 at 01:48:40, Yosi_UTC9 wrote: > ...
4 years ago (2016-11-30 03:18:51 UTC) #14
kojii
Tried a few hours without luck. If assert_selection() inserts the HTML into iframe, the test ...
4 years ago (2016-11-30 03:49:20 UTC) #15
yosin_UTC9
On 2016/11/30 at 03:49:20, kojii wrote: > Tried a few hours without luck. If assert_selection() ...
4 years ago (2016-11-30 04:33:23 UTC) #16
kojii
Sorry, I'll move on. I need to take one more bug today.
4 years ago (2016-11-30 04:35:21 UTC) #17
kojii
On 2016/11/30 at 04:33:23, yosin wrote: > On 2016/11/30 at 03:49:20, kojii wrote: > > ...
4 years ago (2016-11-30 08:09:45 UTC) #18
yosin_UTC9
On 2016/11/30 at 08:09:45, kojii wrote: > On 2016/11/30 at 04:33:23, yosin wrote: > > ...
4 years ago (2016-12-01 01:30:26 UTC) #19
kojii
4 years ago (2016-12-02 05:49:10 UTC) #20
yosin@ said he's going to take this over, so closing.

Powered by Google App Engine
This is Rietveld 408576698