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

Unified Diff: third_party/WebKit/Source/core/editing/commands/SplitElementCommand.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/SplitElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
index d2b43e7bd97e9cde627cb20a5bed5199ebdf8ad2..afa30746379a87e0cdd784477cb7154c9773a3fb 100644
--- a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp
@@ -38,9 +38,9 @@ SplitElementCommand::SplitElementCommand(RawPtr<Element> element, RawPtr<Node> a
, m_element2(element)
, m_atChild(atChild)
{
- ASSERT(m_element2);
- ASSERT(m_atChild);
- ASSERT(m_atChild->parentNode() == m_element2);
+ DCHECK(m_element2);
+ DCHECK(m_atChild);
+ DCHECK_EQ(m_atChild->parentNode(), m_element2);
}
void SplitElementCommand::executeApply()

Powered by Google App Engine
This is Rietveld 408576698