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

Unified Diff: Source/core/rendering/RenderLayerStackingNode.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/rendering/RenderLayerStackingNode.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerStackingNode.cpp
diff --git a/Source/core/rendering/RenderLayerStackingNode.cpp b/Source/core/rendering/RenderLayerStackingNode.cpp
index b4f967b19a2ff3751a6f47067d9db9ace541a1f7..eaa6dfc09b462721f65c4e3dfb3f7ddef750ed99 100644
--- a/Source/core/rendering/RenderLayerStackingNode.cpp
+++ b/Source/core/rendering/RenderLayerStackingNode.cpp
@@ -57,7 +57,7 @@ namespace WebCore {
RenderLayerStackingNode::RenderLayerStackingNode(RenderLayer* layer)
: m_layer(layer)
, m_normalFlowListDirty(true)
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
, m_layerListMutationAllowed(true)
, m_stackingParent(0)
#endif
@@ -71,7 +71,7 @@ RenderLayerStackingNode::RenderLayerStackingNode(RenderLayer* layer)
RenderLayerStackingNode::~RenderLayerStackingNode()
{
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
if (!renderer()->documentBeingDestroyed()) {
ASSERT(!isInStackingParentZOrderLists());
ASSERT(!isInStackingParentNormalFlowList());
@@ -99,7 +99,7 @@ void RenderLayerStackingNode::dirtyZOrderLists()
ASSERT(m_layerListMutationAllowed);
ASSERT(isStackingContext());
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
updateStackingParentForZOrderLists(0);
#endif
@@ -123,7 +123,7 @@ void RenderLayerStackingNode::dirtyNormalFlowList()
{
ASSERT(m_layerListMutationAllowed);
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
updateStackingParentForNormalFlowList(0);
#endif
@@ -168,7 +168,7 @@ void RenderLayerStackingNode::rebuildZOrderLists()
}
}
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
updateStackingParentForZOrderLists(this);
#endif
@@ -190,7 +190,7 @@ void RenderLayerStackingNode::updateNormalFlowList()
}
}
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
updateStackingParentForNormalFlowList(this);
#endif
@@ -219,7 +219,7 @@ void RenderLayerStackingNode::collectLayers(OwnPtr<Vector<RenderLayerStackingNod
}
}
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
bool RenderLayerStackingNode::isInStackingParentZOrderLists() const
{
if (!m_stackingParent || m_stackingParent->zOrderListsDirty())
« no previous file with comments | « Source/core/rendering/RenderLayerStackingNode.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698