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

Issue 2372903003: Ensure valid VisiblePosition input for inSameBlock (Closed)

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

Description

Ensure valid VisiblePosition input for inSameBlock This patch postpones the creation of |visiblePos| in |InsertParagraphSeparatorCommand::doApply| so that |visiblePos| does not get invalidated by the creation of |blockToInsert|. Note: ideally, the creation and modification of an out-of-document element (in this case, |blockToInsert|) shouldn't invalidate VisiblePositions, but this is still hard to fix in the current implementation. See crbug.com/650164. BUG=648949 Committed: https://crrev.com/172391bd511c3871ff8c7bcd73fa9cb5c1d12043 Cr-Commit-Position: refs/heads/master@{#421138}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp View 3 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (8 generated)
Xiaocheng
PTAL.
4 years, 2 months ago (2016-09-27 05:54:13 UTC) #6
yosin_UTC9
lgtm Please put a reason why you shuffle variable initialization, e.g. cloneElementWithoutChildren() increments DOM tree ...
4 years, 2 months ago (2016-09-27 07:27:17 UTC) #7
Xiaocheng
On 2016/09/27 at 07:27:17, yosin wrote: > lgtm > > > Please put a reason ...
4 years, 2 months ago (2016-09-27 07:33:12 UTC) #9
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/2372903003/1
4 years, 2 months ago (2016-09-27 07:33:33 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-27 07:38:10 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 07:39:43 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/172391bd511c3871ff8c7bcd73fa9cb5c1d12043
Cr-Commit-Position: refs/heads/master@{#421138}

Powered by Google App Engine
This is Rietveld 408576698