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

Issue 2170823002: Make ApplyStyleCommand::applyBlockStyle() to use connected position only (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ApplyStyleCommand::applyBlockStyle() to use connected position only This patch makes |ApplyStyleCommand::applyBlockStyle()| to use connected position of |paragraphStart| by checking whether |paragraphStart| is connected or not after calling |moveParagraphContentsToNewBlockIfNecessary()| which makes anchor node of |paragraphStart| detached from document. This patch also introduces |DCHECK(paragraphStart.isConnected()| to catch other cases in future. In crbug.com/626730, we call |endOfParagraph()| with disconnected position in |paragraphStart| then we hit connected position |DCHECK| in |VisiblePosition| constructor. BUG=626730 TEST=LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html Committed: https://crrev.com/afbdbad679e6e40634a15ca8d91aaf0d46bcaec3 Cr-Commit-Position: refs/heads/master@{#407043}

Patch Set 1 : 2016-07-21T16:09:41 #

Patch Set 2 : 2016-07-21T17:08:56 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/editing/execCommand/apply_style/justify_right_ul_br_crash.html View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-07-21 08:45:22 UTC) #8
yoichio
lgtm
4 years, 5 months ago (2016-07-22 02:04:43 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/2170823002/20001
4 years, 5 months ago (2016-07-22 02:13:53 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-22 03:46:57 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:48:18 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/afbdbad679e6e40634a15ca8d91aaf0d46bcaec3
Cr-Commit-Position: refs/heads/master@{#407043}

Powered by Google App Engine
This is Rietveld 408576698