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

Unified Diff: third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.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/WrapContentsInDummySpanCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp b/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
index c82b9aad08b5483a7c62c6974950f0493f4f2761..955ed454ccaad77de6ea35da9e32bcbfd27fb5b0 100644
--- a/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/WrapContentsInDummySpanCommand.cpp
@@ -35,7 +35,7 @@ WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand(RawPtr<Element> e
: SimpleEditCommand(element->document())
, m_element(element)
{
- ASSERT(m_element);
+ DCHECK(m_element);
}
void WrapContentsInDummySpanCommand::executeApply()
@@ -58,7 +58,7 @@ void WrapContentsInDummySpanCommand::doApply(EditingState*)
void WrapContentsInDummySpanCommand::doUnapply()
{
- ASSERT(m_element);
+ DCHECK(m_element);
if (!m_dummySpan || !m_element->hasEditableStyle())
return;
@@ -74,7 +74,7 @@ void WrapContentsInDummySpanCommand::doUnapply()
void WrapContentsInDummySpanCommand::doReapply()
{
- ASSERT(m_element);
+ DCHECK(m_element);
if (!m_dummySpan || !m_element->hasEditableStyle())
return;

Powered by Google App Engine
This is Rietveld 408576698