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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Limited fix to /core/ only. Created 4 years, 1 month 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/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index d632977be583a3d57dc2cf833d54fecce476aa6c..c8c88cc2faffa868d89265997720c0fcfdaf3485 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -663,7 +663,7 @@ class CORE_EXPORT Node : public EventTarget {
// Tracing--rename it to something indicative.
String debugName() const;
-#ifndef NDEBUG
+#if DCHECK_IS_ON()
String toString() const;
String toTreeStringForThis() const;
String toFlatTreeStringForThis() const;
@@ -1018,7 +1018,7 @@ CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node*);
} // namespace blink
-#ifndef NDEBUG
+#if DCHECK_IS_ON()
// Outside the WebCore namespace for ease of invocation from gdb.
void showNode(const blink::Node*);
void showTree(const blink::Node*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698