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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 class SVGPaintContext { 98 class SVGPaintContext {
99 STACK_ALLOCATED(); 99 STACK_ALLOCATED();
100 100
101 public: 101 public:
102 SVGPaintContext(const LayoutObject& object, const PaintInfo& paintInfo) 102 SVGPaintContext(const LayoutObject& object, const PaintInfo& paintInfo)
103 : m_object(object), 103 : m_object(object),
104 m_paintInfo(paintInfo), 104 m_paintInfo(paintInfo),
105 m_filter(nullptr), 105 m_filter(nullptr),
106 m_masker(nullptr) 106 m_masker(nullptr)
107 #if ENABLE(ASSERT)
108 ,
109 m_applyClipMaskAndFilterIfNecessaryCalled(false)
110 #endif
111 { 107 {
112 } 108 }
113 109
114 ~SVGPaintContext(); 110 ~SVGPaintContext();
115 111
116 PaintInfo& paintInfo() { 112 PaintInfo& paintInfo() {
117 return m_filterPaintInfo ? *m_filterPaintInfo : m_paintInfo; 113 return m_filterPaintInfo ? *m_filterPaintInfo : m_paintInfo;
118 } 114 }
119 115
120 // Return true if these operations aren't necessary or if they are 116 // Return true if these operations aren't necessary or if they are
(...skipping 29 matching lines...) Expand all
150 146
151 const LayoutObject& m_object; 147 const LayoutObject& m_object;
152 PaintInfo m_paintInfo; 148 PaintInfo m_paintInfo;
153 std::unique_ptr<PaintInfo> m_filterPaintInfo; 149 std::unique_ptr<PaintInfo> m_filterPaintInfo;
154 LayoutSVGResourceFilter* m_filter; 150 LayoutSVGResourceFilter* m_filter;
155 LayoutSVGResourceMasker* m_masker; 151 LayoutSVGResourceMasker* m_masker;
156 std::unique_ptr<CompositingRecorder> m_compositingRecorder; 152 std::unique_ptr<CompositingRecorder> m_compositingRecorder;
157 Optional<ClipPathClipper> m_clipPathClipper; 153 Optional<ClipPathClipper> m_clipPathClipper;
158 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; 154 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext;
159 Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties; 155 Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties;
160 #if ENABLE(ASSERT) 156 #if DCHECK_IS_ON()
161 bool m_applyClipMaskAndFilterIfNecessaryCalled; 157 bool m_applyClipMaskAndFilterIfNecessaryCalled = false;
162 #endif 158 #endif
163 }; 159 };
164 160
165 } // namespace blink 161 } // namespace blink
166 162
167 #endif // SVGPaintContext_h 163 #endif // SVGPaintContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698