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

Issue 335773002: Don't move uneditable paragraph contents in CompositeEditCommand::moveParagraphContentsToNewBlockIfN (Closed)

Created:
6 years, 6 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
Project:
blink
Visibility:
Public.

Description

Don't move uneditable paragraph contents in CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary This patch makes CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary not to move uneditable paragraph contents. In attached test case, Blink tried to move contents in uneditable ABBR element. BUG=381076, 383811 TEST=LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176172

Patch Set 1 #

Total comments: 2

Patch Set 2 : 2014-06-13T05:31:16 #

Total comments: 2

Patch Set 3 : 2014-06-16T12:44:07 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -12 lines) Patch
A + LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
A + LayoutTests/editing/execCommand/justy-center-with-uneditable-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
6 years, 6 months ago (2014-06-13 02:28:27 UTC) #1
Yuta Kitamura
https://codereview.chromium.org/335773002/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (right): https://codereview.chromium.org/335773002/diff/1/Source/core/editing/CompositeEditCommand.cpp#newcode905 Source/core/editing/CompositeEditCommand.cpp:905: if (!isEditablePosition(pos, ContentIsEditable, DoNotUpdateStyle)) I'm not 100% certain whether ...
6 years, 6 months ago (2014-06-13 07:29:02 UTC) #2
yosin_UTC9
PTAL https://codereview.chromium.org/335773002/diff/1/Source/core/editing/CompositeEditCommand.cpp File Source/core/editing/CompositeEditCommand.cpp (right): https://codereview.chromium.org/335773002/diff/1/Source/core/editing/CompositeEditCommand.cpp#newcode905 Source/core/editing/CompositeEditCommand.cpp:905: if (!isEditablePosition(pos, ContentIsEditable, DoNotUpdateStyle)) On 2014/06/13 07:29:01, Yuta ...
6 years, 6 months ago (2014-06-13 09:01:27 UTC) #3
yosin_UTC9
ping
6 years, 6 months ago (2014-06-16 03:29:32 UTC) #4
Yuta Kitamura
LGTM https://codereview.chromium.org/335773002/diff/20001/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html File LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html (right): https://codereview.chromium.org/335773002/diff/20001/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html#newcode9 LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html:9: document.execCommand("selectAll"); nit: Single quotes for string literals?
6 years, 6 months ago (2014-06-16 03:33:27 UTC) #5
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/335773002/diff/20001/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html File LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html (right): https://codereview.chromium.org/335773002/diff/20001/LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html#newcode9 LayoutTests/editing/execCommand/justy-center-with-uneditable-crash.html:9: document.execCommand("selectAll"); On 2014/06/16 03:33:26, Yuta ...
6 years, 6 months ago (2014-06-16 03:45:54 UTC) #6
yosin_UTC9
The CQ bit was checked by yosin@chromium.org
6 years, 6 months ago (2014-06-16 03:45:57 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/335773002/40001
6 years, 6 months ago (2014-06-16 03:46:34 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 04:53:45 UTC) #9
Message was sent while issue was closed.
Change committed as 176172

Powered by Google App Engine
This is Rietveld 408576698