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

Unified Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.h

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/paint/SVGPaintContext.h
diff --git a/third_party/WebKit/Source/core/paint/SVGPaintContext.h b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
index 45f80cb74884ec729796626545b6172a28162ebd..1420fc96542af4651ea22840ffdc7d0dfb88827d 100644
--- a/third_party/WebKit/Source/core/paint/SVGPaintContext.h
+++ b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
@@ -104,10 +104,6 @@ class SVGPaintContext {
m_paintInfo(paintInfo),
m_filter(nullptr),
m_masker(nullptr)
-#if ENABLE(ASSERT)
- ,
- m_applyClipMaskAndFilterIfNecessaryCalled(false)
-#endif
{
}
@@ -157,8 +153,8 @@ class SVGPaintContext {
Optional<ClipPathClipper> m_clipPathClipper;
std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext;
Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties;
-#if ENABLE(ASSERT)
- bool m_applyClipMaskAndFilterIfNecessaryCalled;
+#if DCHECK_IS_ON()
+ bool m_applyClipMaskAndFilterIfNecessaryCalled = false;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698