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

Unified Diff: third_party/WebKit/Source/core/editing/commands/AppendNodeCommand.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/AppendNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/AppendNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/AppendNodeCommand.cpp
index ebcab4b573e4315acb278c3c4a26d1353e7ea0b4..5750eb69fef6797551f8beacceefa9d728070713 100644
--- a/third_party/WebKit/Source/core/editing/commands/AppendNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/AppendNodeCommand.cpp
@@ -34,11 +34,11 @@ AppendNodeCommand::AppendNodeCommand(ContainerNode* parent, Node* node)
, m_parent(parent)
, m_node(node)
{
- ASSERT(m_parent);
- ASSERT(m_node);
- ASSERT(!m_node->parentNode());
+ DCHECK(m_parent);
+ DCHECK(m_node);
+ DCHECK(!m_node->parentNode()) << m_node;
- ASSERT(m_parent->hasEditableStyle() || !m_parent->inActiveDocument());
+ DCHECK(m_parent->hasEditableStyle() || !m_parent->inActiveDocument()) << m_parent;
}
void AppendNodeCommand::doApply(EditingState*)

Powered by Google App Engine
This is Rietveld 408576698