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

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: Fix compilation. 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 83e0a4eb0f8e938f818f0c9782b9e331674b16ca..80d790faac211d2790cd80f53a596281cdb4438f 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(RawPtr<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