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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.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/InsertIntoTextNodeCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
index 0d919d12031bd68dcf93570b986de3eba9f89796..fd29c5ff67f644607385af0437ba49d622b93a87 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertIntoTextNodeCommand.cpp
@@ -39,9 +39,9 @@ InsertIntoTextNodeCommand::InsertIntoTextNodeCommand(Text* node, unsigned offset
, m_offset(offset)
, m_text(text)
{
- ASSERT(m_node);
- ASSERT(m_offset <= m_node->length());
- ASSERT(!m_text.isEmpty());
+ DCHECK(m_node);
+ DCHECK_LE(m_offset, m_node->length());
+ DCHECK(!m_text.isEmpty());
}
void InsertIntoTextNodeCommand::doApply(EditingState*)

Powered by Google App Engine
This is Rietveld 408576698