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

Unified Diff: third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.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/SplitTextNodeContainingElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
index f896196fe29287bdd544acb4d415f52dccf9c603..6bfa30124805f13066fc89e166e864deefcf8a92 100644
--- a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
@@ -35,14 +35,14 @@ namespace blink {
SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand(Text* text, int offset)
: CompositeEditCommand(text->document()), m_text(text), m_offset(offset)
{
- ASSERT(m_text);
- ASSERT(m_text->length() > 0);
+ DCHECK(m_text);
+ DCHECK_GT(m_text->length(), 0u);
}
void SplitTextNodeContainingElementCommand::doApply(EditingState*)
{
- ASSERT(m_text);
- ASSERT(m_offset > 0);
+ DCHECK(m_text);
+ DCHECK_GT(m_offset, 0);
splitTextNode(m_text.get(), m_offset);

Powered by Google App Engine
This is Rietveld 408576698