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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGeometryMap.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/layout/LayoutGeometryMap.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
index ee0f643bf71cc7f357e415bdeb0456b92e78f9c9..6c02660a913afde039369d76e500c689a76001d5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
@@ -62,7 +62,7 @@ void LayoutGeometryMap::mapToAncestor(
}
bool inFixed = false;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool foundAncestor = !ancestor || (m_mapping.size() &&
m_mapping[0].m_layoutObject == ancestor);
#endif
@@ -73,7 +73,7 @@ void LayoutGeometryMap::mapToAncestor(
// If container is the root LayoutView (step 0) we want to apply its fixed
// position offset.
if (i > 0 && currentStep.m_layoutObject == ancestor) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
foundAncestor = true;
#endif
break;
@@ -153,7 +153,7 @@ FloatQuad LayoutGeometryMap::mapToAncestor(
result = transformState.lastPlanarQuad();
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
if (m_mapping.size() > 0) {
const LayoutObject* lastLayoutObject = m_mapping.back().m_layoutObject;
@@ -364,7 +364,7 @@ void LayoutGeometryMap::stepRemoved(const LayoutGeometryMapStep& step) {
}
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool LayoutGeometryMap::isTopmostLayoutView(
const LayoutObject* layoutObject) const {
if (!layoutObject->isLayoutView())
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGeometryMap.h ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698