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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2550413002: Make ifdefs consistent in WebKit/Source/modules/accessibility/. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index eef1ab9155016de6964f5f42b110a52dfede5086..ef53fd503dd5e541bc369608b8c3556dd5d90418 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -194,7 +194,7 @@ AXLayoutObject::AXLayoutObject(LayoutObject* layoutObject,
AXObjectCacheImpl& axObjectCache)
: AXNodeObject(layoutObject->node(), axObjectCache),
m_layoutObject(layoutObject) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
m_layoutObject->setHasAXObject(true);
#endif
}
@@ -314,7 +314,7 @@ void AXLayoutObject::detach() {
detachRemoteSVGRoot();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
if (m_layoutObject)
m_layoutObject->setHasAXObject(false);
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698