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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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/FloatingObjects.cpp
diff --git a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
index 096621c20710b141463344f2b94c5b16e2029e6a..fa37c00133b6608d41aeb4fc762e086bdfe35984 100644
--- a/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
+++ b/third_party/WebKit/Source/core/layout/FloatingObjects.cpp
@@ -527,7 +527,7 @@ void FloatingObjects::addPlacedObject(FloatingObject& floatingObject) {
if (m_placedFloatsTree.isInitialized())
m_placedFloatsTree.add(intervalForFloatingObject(floatingObject));
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
floatingObject.setIsInPlacedTree(true);
#endif
markLowestFloatLogicalBottomCacheAsDirty();
@@ -543,7 +543,7 @@ void FloatingObjects::removePlacedObject(FloatingObject& floatingObject) {
}
floatingObject.setIsPlaced(false);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
floatingObject.setIsInPlacedTree(false);
#endif
markLowestFloatLogicalBottomCacheAsDirty();

Powered by Google App Engine
This is Rietveld 408576698