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

Unified Diff: Source/core/rendering/FloatingObjects.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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
« no previous file with comments | « Source/core/rendering/FloatingObjects.h ('k') | Source/core/rendering/InlineBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/FloatingObjects.cpp
diff --git a/Source/core/rendering/FloatingObjects.cpp b/Source/core/rendering/FloatingObjects.cpp
index 2dd242fa96d37a3770cc07e41817d6ff4cd16d7d..677aa28a75183ccfe81a396eef0e089ad48db010 100644
--- a/Source/core/rendering/FloatingObjects.cpp
+++ b/Source/core/rendering/FloatingObjects.cpp
@@ -48,7 +48,7 @@ FloatingObject::FloatingObject(RenderBox* renderer)
, m_shouldPaint(true)
, m_isDescendant(false)
, m_isPlaced(false)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_isInPlacedTree(false)
#endif
{
@@ -69,7 +69,7 @@ FloatingObject::FloatingObject(RenderBox* renderer, Type type, const LayoutRect&
, m_shouldPaint(shouldPaint)
, m_isDescendant(isDescendant)
, m_isPlaced(true)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_isInPlacedTree(false)
#endif
{
@@ -310,7 +310,7 @@ void FloatingObjects::addPlacedObject(FloatingObject* floatingObject)
if (m_placedFloatsTree.isInitialized())
m_placedFloatsTree.add(intervalForFloatingObject(floatingObject));
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
floatingObject->setIsInPlacedTree(true);
#endif
markLowestFloatLogicalBottomCacheAsDirty();
@@ -326,7 +326,7 @@ void FloatingObjects::removePlacedObject(FloatingObject* floatingObject)
}
floatingObject->setIsPlaced(false);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
floatingObject->setIsInPlacedTree(false);
#endif
markLowestFloatLogicalBottomCacheAsDirty();
« no previous file with comments | « Source/core/rendering/FloatingObjects.h ('k') | Source/core/rendering/InlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698