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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Revert small part Created 4 years 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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 8478f86e332c7f6041d231b7552db5f38e8c24dc..f20993c811fb801d221d68980ea3d766d805efe7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -292,7 +292,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
return locateFlowThreadContainingBlock();
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void setHasAXObject(bool flag) { m_hasAXObject = flag; }
bool hasAXObject() const { return m_hasAXObject; }
@@ -419,7 +419,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
//////////////////////////////////////////
private:
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; }
void setNeedsLayoutIsForbidden(bool flag) {
m_setNeedsLayoutForbidden = flag;
@@ -2039,7 +2039,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
void removeShapeImageClient(ShapeValue*);
void removeCursorImageClient(const CursorList*);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void checkBlockPositionedObjectsNeedLayout();
#endif
@@ -2065,7 +2065,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
LayoutObject* m_previous;
LayoutObject* m_next;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
unsigned m_hasAXObject : 1;
unsigned m_setNeedsLayoutForbidden : 1;
#endif
@@ -2520,7 +2520,7 @@ inline void LayoutObject::clearNeedsLayout() {
setNeedsPositionedMovementLayout(false);
setAncestorLineBoxDirty(false);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
checkBlockPositionedObjectsNeedLayout();
#endif
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698