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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index ca28a2c62aabbe6da3ad50231c4f87911506fcf2..5ebdd6f1b632681a517a0e87bd03f273c6cb287b 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -62,9 +62,6 @@ SVGElement::SVGElement(const QualifiedName& tagName,
Document& document,
ConstructionType constructionType)
: Element(tagName, &document, constructionType),
-#if ENABLE(ASSERT)
- m_inRelativeLengthClientsInvalidation(false),
-#endif
m_SVGRareData(nullptr),
m_className(SVGAnimatedString::create(this, HTMLNames::classAttr)) {
addToPropertyMap(m_className);
@@ -554,7 +551,7 @@ void SVGElement::invalidateRelativeLengthClients(
return;
ASSERT(!m_inRelativeLengthClientsInvalidation);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
AutoReset<bool> inRelativeLengthClientsInvalidationChange(
&m_inRelativeLengthClientsInvalidation, true);
#endif

Powered by Google App Engine
This is Rietveld 408576698