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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.h

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Created 4 years, 1 month 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/platform/heap/PersistentNode.h
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
index ae2f68370704f448034d21e66c4c25474a897f5b..77e791fe97535465dd42770179dc377d208a15a8 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -130,7 +130,9 @@ class PLATFORM_EXPORT PersistentRegion final {
}
void freePersistentNode(PersistentNode* persistentNode) {
+#if DCHECK_IS_ON()
ASSERT(m_persistentCount > 0);
+#endif
persistentNode->setFreeListNext(m_freeListHead);
m_freeListHead = persistentNode;
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698