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

Unified Diff: third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization 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/SVGDocumentExtensions.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp b/third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp
index d6b7b67a5be6f0dc9b77a9ee5d262ba697c8d2bd..2314a2701c3d20c4513e214c710952343f4fbc24 100644
--- a/third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp
@@ -33,10 +33,6 @@ namespace blink {
SVGDocumentExtensions::SVGDocumentExtensions(Document* document)
: m_document(document)
-#if ENABLE(ASSERT)
- ,
- m_inRelativeLengthSVGRootsInvalidation(false)
-#endif
{
}
@@ -259,7 +255,7 @@ bool SVGDocumentExtensions::isSVGRootWithRelativeLengthDescendents(
void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(
SubtreeLayoutScope* scope) {
ASSERT(!m_inRelativeLengthSVGRootsInvalidation);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
AutoReset<bool> inRelativeLengthSVGRootsChange(
&m_inRelativeLengthSVGRootsInvalidation, true);
#endif
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.h ('k') | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698