| 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 127a973e91f98bc956626dc9aeeebac1dcf96c51..08c77257b0224c76fc0ddad8aebedcca3b83d369 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(RawPtr<HTMLElement> eleme
|
| : 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());
|
| RawPtr<ContainerNode> parentNode = elementToReplace.parentNode();
|
| parentNode->insertBefore(newElement, &elementToReplace);
|
|
|
|
|