DescriptionMake 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 #
Messages
Total messages: 16 (11 generated)
|