| Index: third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp
|
| index a03ef621902aba1f5327056ae03951f336b4d7b5..8a945b5b121461bb725b9ee84caef28a8a322670 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp
|
| @@ -45,12 +45,12 @@ ReplaceNodeWithSpanCommand::ReplaceNodeWithSpanCommand(HTMLElement* element)
|
| : SimpleEditCommand(element->document())
|
| , m_elementToReplace(element)
|
| {
|
| - ASSERT(m_elementToReplace);
|
| + DCHECK(m_elementToReplace);
|
| }
|
|
|
| static void swapInNodePreservingAttributesAndChildren(HTMLElement* newElement, HTMLElement& elementToReplace)
|
| {
|
| - ASSERT(elementToReplace.inShadowIncludingDocument());
|
| + DCHECK(elementToReplace.inShadowIncludingDocument()) << elementToReplace;
|
| ContainerNode* parentNode = elementToReplace.parentNode();
|
| parentNode->insertBefore(newElement, &elementToReplace);
|
|
|
|
|