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

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: 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/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 29a0c8057baab464de05f6911a707e8a0b35e1c0..fabe7d7705838c26cded4850b83e4ec7c92bad97 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(Element* element)
: 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