Bug 1534467 - Fix layout debugger build in non-DEBUG builds. r=emilio
authorChris Peterson <cpeterson@mozilla.com>
Wed, 13 Mar 2019 21:36:00 +0000
changeset 463962 bfb30a402bceee67aea0901ff7da70431d9897ce
parent 463961 814b2ae9ef66813cffc762db0353db2d0744fd81
child 463963 252240cd6878e585031d0125747f407ae84ae309
push id35703
push userdluca@mozilla.com
push dateThu, 14 Mar 2019 16:23:33 +0000
treeherdermozilla-central@802aec0783a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1534467
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1534467 - Fix layout debugger build in non-DEBUG builds. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D23397
layout/base/nsILayoutDebugger.h
--- a/layout/base/nsILayoutDebugger.h
+++ b/layout/base/nsILayoutDebugger.h
@@ -6,18 +6,16 @@
 
 /* XPCOM interface for layout-debug extension to reach layout internals */
 
 #ifndef nsILayoutDebugger_h___
 #define nsILayoutDebugger_h___
 
 #include "nsISupports.h"
 
-#ifdef DEBUG
-
 // 1295f7c0-96b3-41fc-93ed-c95dfb712ce7
 #  define NS_ILAYOUT_DEBUGGER_IID                      \
     {                                                  \
       0x1295f7c0, 0x96b3, 0x41fc, {                    \
         0x93, 0xed, 0xc9, 0x5d, 0xfb, 0x71, 0x2c, 0xe7 \
       }                                                \
     }
 
@@ -34,13 +32,13 @@ class nsILayoutDebugger : public nsISupp
 
   NS_IMETHOD SetShowEventTargetFrameBorder(bool aEnable) = 0;
 
   NS_IMETHOD GetShowEventTargetFrameBorder(bool* aResult) = 0;
 };
 
 NS_DEFINE_STATIC_IID_ACCESSOR(nsILayoutDebugger, NS_ILAYOUT_DEBUGGER_IID)
 
+#ifdef DEBUG
 nsresult NS_NewLayoutDebugger(nsILayoutDebugger** aResult);
-
 #endif /* DEBUG */
 
 #endif /* nsILayoutDebugger_h___ */