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 521858 bfb30a402bce
parent 521857 814b2ae9ef66
child 521859 252240cd6878
push id10870
push usernbeleuzu@mozilla.com
push dateFri, 15 Mar 2019 20:00:07 +0000
treeherdermozilla-beta@c594aee5b7a4 [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___ */