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

Issue 300023009: Get rid of false assert from CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary (Closed)

Created:
6 years, 7 months ago by yosin_UTC9
Modified:
6 years, 6 months ago
Reviewers:
yoichio, Yuta Kitamura
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Get rid of false assert from CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary This patch removes false assumption from CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary, which attached test case breaks that. In the test case attached test case, |upstreamStart| points empty UL elemnt, but it is visble, and |upstreamEnd| points A element. Thus, |upstreamStart| isn't descendant of |upstreamEnd|. When removing "style" attribute from UL element to make it invisible, this test case doesn't cause assertion. BUG=366068 TEST=LayoutTests/editing/execCommand/justify-center-empty-list-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175118

Patch Set 1 #

Total comments: 5

Patch Set 2 : 2014-05-30T02:02:04 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
A + LayoutTests/editing/execCommand/justify-center-empty-list-crash.html View 1 1 chunk +9 lines, -7 lines 0 comments Download
A + LayoutTests/editing/execCommand/justify-center-empty-list-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
6 years, 7 months ago (2014-05-27 08:57:29 UTC) #1
Yuta Kitamura
https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (left): https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp#oldcode928 Source/core/editing/CompositeEditCommand.cpp:928: ASSERT(upstreamStart.deprecatedNode()->isDescendantOf(enclosingBlock(upstreamEnd.deprecatedNode()))); I tried to follow the code but couldn't ...
6 years, 6 months ago (2014-05-28 09:14:10 UTC) #2
yosin_UTC9
https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (left): https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp#oldcode928 Source/core/editing/CompositeEditCommand.cpp:928: ASSERT(upstreamStart.deprecatedNode()->isDescendantOf(enclosingBlock(upstreamEnd.deprecatedNode()))); On 2014/05/28 09:14:10, Yuta Kitamura wrote: > I ...
6 years, 6 months ago (2014-05-29 04:04:38 UTC) #3
Yuta Kitamura
https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (left): https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp#oldcode928 Source/core/editing/CompositeEditCommand.cpp:928: ASSERT(upstreamStart.deprecatedNode()->isDescendantOf(enclosingBlock(upstreamEnd.deprecatedNode()))); On 2014/05/29 04:04:39, yosi wrote: > On 2014/05/28 ...
6 years, 6 months ago (2014-05-29 09:00:23 UTC) #4
Yuta Kitamura
LGTM with comments https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (left): https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp#oldcode928 Source/core/editing/CompositeEditCommand.cpp:928: ASSERT(upstreamStart.deprecatedNode()->isDescendantOf(enclosingBlock(upstreamEnd.deprecatedNode()))); On 2014/05/29 09:00:24, Yuta Kitamura ...
6 years, 6 months ago (2014-05-30 04:40:44 UTC) #5
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (left): https://codereview.chromium.org/300023009/diff/1/Source/core/editing/CompositeEditCommand.cpp#oldcode928 Source/core/editing/CompositeEditCommand.cpp:928: ASSERT(upstreamStart.deprecatedNode()->isDescendantOf(enclosingBlock(upstreamEnd.deprecatedNode()))); On 2014/05/30 04:40:45, Yuta ...
6 years, 6 months ago (2014-05-30 05:04:26 UTC) #6
yosin_UTC9
The CQ bit was checked by yosin@chromium.org
6 years, 6 months ago (2014-05-30 05:04:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yosin@chromium.org/300023009/20001
6 years, 6 months ago (2014-05-30 05:06:01 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 12:59:59 UTC) #9
Message was sent while issue was closed.
Change committed as 175118

Powered by Google App Engine
This is Rietveld 408576698