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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceNodeWithSpanCommand.cpp

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698