Index: Source/core/rendering/svg/RenderSVGText.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGText.cpp b/Source/core/rendering/svg/RenderSVGText.cpp |
index 7d73270e00da4463963d81288680fa2d595e31fe..93222234cb3c29b468c0ccc6981f8af4ff2ed84a 100644 |
--- a/Source/core/rendering/svg/RenderSVGText.cpp |
+++ b/Source/core/rendering/svg/RenderSVGText.cpp |
@@ -196,7 +196,7 @@ void RenderSVGText::subtreeChildWasAdded(RenderObject* child) |
} |
} |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
// Verify that m_layoutAttributes only differs by a maximum of one entry. |
for (size_t i = 0; i < size; ++i) |
ASSERT(m_layoutAttributes.find(newLayoutAttributes[i]) != kNotFound || newLayoutAttributes[i] == attributes); |
@@ -207,7 +207,7 @@ void RenderSVGText::subtreeChildWasAdded(RenderObject* child) |
static inline void checkLayoutAttributesConsistency(RenderSVGText* text, Vector<SVGTextLayoutAttributes*>& expectedLayoutAttributes) |
{ |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
Vector<SVGTextLayoutAttributes*> newLayoutAttributes; |
collectLayoutAttributes(text, newLayoutAttributes); |
ASSERT(newLayoutAttributes == expectedLayoutAttributes); |