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

Issue 2531263002: Abort CompositeEditCommand::moveParagraphs if destination is inside moving range (Closed)

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

Description

Abort CompositeEditCommand::moveParagraphs if destination is inside moving range This patch makes CompositeEditCommand::moveParagraphs abort in the above mentioned case, because there is no way to move the contents to a destination inside itself. There might be a deeper cause of passing such invalid parameter combination to the function, which is not covered by this patch. BUG=585048 TEST=webkit_unit_tests --gtest_filter=TypingCommandTest.insertLineBreakWithIllFormedHTML Committed: https://crrev.com/3e1ec97972c1e09d8e472aad4cf225d1ffc5dfef Cr-Commit-Position: refs/heads/master@{#434844}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -1 line) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.h View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/editing/commands/TypingCommandTest.cpp View 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Xiaocheng
PTAL
4 years ago (2016-11-28 17:05:02 UTC) #8
yosin_UTC9
lgtm We'll study root cause when we revise visible position canonicalization. +tken@ for core/BUILD.gn to ...
4 years ago (2016-11-29 01:31:33 UTC) #10
tkent
lgtm
4 years ago (2016-11-29 01:33:23 UTC) #11
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/2531263002/1
4 years ago (2016-11-29 01:38:14 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-29 02:50:41 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-29 02:53:36 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3e1ec97972c1e09d8e472aad4cf225d1ffc5dfef
Cr-Commit-Position: refs/heads/master@{#434844}

Powered by Google App Engine
This is Rietveld 408576698