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

Unified Diff: third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win 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/dom/NodeIntersectionObserverData.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp b/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
index 8fdb35d1c5d5126f86b5f86e08f1f50bfd95f9b8..3bb8616ec8f84bd4dbccd34b8d16bd9eba44de1e 100644
--- a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
@@ -52,7 +52,7 @@ void NodeIntersectionObserverData::dispose()
copyToVector(m_intersectionObservers, observersToDisconnect);
for (auto& observer : observersToDisconnect)
observer->disconnect();
- ASSERT(m_intersectionObservers.isEmpty());
+ DCHECK(m_intersectionObservers.isEmpty());
}
#endif
@@ -64,7 +64,7 @@ RawPtr<Node> NodeIntersectionObserverData::createWeakPtr(Node* node)
if (!m_weakPointerFactory)
m_weakPointerFactory = new WeakPtrFactory<Node>(node);
WeakPtr<Node> result = m_weakPointerFactory->createWeakPtr();
- ASSERT(result.get() == node);
+ DCHECK_EQ(result.get(), node);
return result;
#endif
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeComputedStyle.h ('k') | third_party/WebKit/Source/core/dom/NodeIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698