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

Unified Diff: Source/core/svg/SVGElement.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. 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
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 837222ef47dd39c0a346614f4dc17f53e11a5437..3f6a740ae7a6c1b65dcc70b9783e03dfe20f5050 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -57,7 +57,7 @@ using namespace SVGNames;
SVGElement::SVGElement(const QualifiedName& tagName, Document& document, ConstructionType constructionType)
: Element(tagName, &document, constructionType)
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
, m_inRelativeLengthClientsInvalidation(false)
#endif
// |m_isContextElement| must be initialized before |m_className|, as SVGAnimatedString tear-off c-tor currently set this to true.
@@ -416,7 +416,7 @@ void SVGElement::invalidateRelativeLengthClients(SubtreeLayoutScope* layoutScope
return;
ASSERT(!m_inRelativeLengthClientsInvalidation);
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelativeLengthClientsInvalidation, true);
#endif
@@ -986,7 +986,7 @@ SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker()
m_targetElement->setInstanceUpdatesBlocked(false);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, animatableAttributes, ());

Powered by Google App Engine
This is Rietveld 408576698