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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerStackingNode.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/PaintLayerStackingNode.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
index 3eb66f98af45dab2371470f01888bdaebbcf636c..05c043b508026f2d22b0ee3de6c5ccff7f32e5e4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
@@ -132,7 +132,7 @@ class CORE_EXPORT PaintLayerStackingNode {
PaintLayer* layer() const { return m_layer; }
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool layerListMutationAllowed() const { return m_layerListMutationAllowed; }
void setLayerListMutationAllowed(bool flag) {
m_layerListMutationAllowed = flag;
@@ -161,7 +161,7 @@ class CORE_EXPORT PaintLayerStackingNode {
std::unique_ptr<Vector<PaintLayerStackingNode*>>& posZOrderList,
std::unique_ptr<Vector<PaintLayerStackingNode*>>& negZOrderList);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool isInStackingParentZOrderLists() const;
void updateStackingParentForZOrderLists(
PaintLayerStackingNode* stackingParent);
@@ -199,7 +199,7 @@ class CORE_EXPORT PaintLayerStackingNode {
// to style change.
bool m_isStacked : 1;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool m_layerListMutationAllowed : 1;
PaintLayerStackingNode* m_stackingParent;
#endif
@@ -208,7 +208,7 @@ class CORE_EXPORT PaintLayerStackingNode {
inline void PaintLayerStackingNode::clearZOrderLists() {
DCHECK(!isStackingContext());
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
updateStackingParentForZOrderLists(0);
#endif
@@ -229,7 +229,7 @@ inline void PaintLayerStackingNode::updateZOrderLists() {
rebuildZOrderLists();
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
class LayerListMutationDetector {
public:
explicit LayerListMutationDetector(PaintLayerStackingNode* stackingNode)

Powered by Google App Engine
This is Rietveld 408576698