| 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);
|
|
|
|
|