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

Unified Diff: third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Check if DCHECK is ON in TextAutosizer Created 3 years, 9 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/layout/DepthOrderedLayoutObjectList.cpp
diff --git a/third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp b/third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp
index 1dd24049348b2da5cf15f43419a67c4ccb1970f0..566eff04475c56b5729b3fa281d28f8fe9fba02f 100644
--- a/third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp
+++ b/third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp
@@ -37,7 +37,7 @@ bool DepthOrderedLayoutObjectList::isEmpty() const {
}
void DepthOrderedLayoutObjectList::add(LayoutObject& object) {
- ASSERT(!object.frameView()->isInPerformLayout());
+ DCHECK(!object.frameView()->isInPerformLayout());
m_data->m_objects.insert(&object);
m_data->m_orderedObjects.clear();
}
@@ -46,7 +46,7 @@ void DepthOrderedLayoutObjectList::remove(LayoutObject& object) {
auto it = m_data->m_objects.find(&object);
if (it == m_data->m_objects.end())
return;
- ASSERT(!object.frameView()->isInPerformLayout());
+ DCHECK(!object.frameView()->isInPerformLayout());
m_data->m_objects.erase(it);
m_data->m_orderedObjects.clear();
}

Powered by Google App Engine
This is Rietveld 408576698