commit acee44efda3c1af41c454bd6577d1a17cdb99097
parent dc244b89d06252a1dd13fbb4710abf24b4491dde
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Tue, 14 Oct 2025 21:03:30 +0200
Bug 1994157 - Add a missing include needed by gcc.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/widget/nsIWidget.h b/widget/nsIWidget.h
@@ -45,6 +45,12 @@
#include "mozilla/widget/InitData.h"
#include "nsXULAppAPI.h"
+// GCC needs this to compile RefPtr<NativeLayerRoot> GetNativeLayerRoot(),
+// surprisingly.
+#ifdef MOZ_IS_GCC
+# include "mozilla/layers/NativeLayer.h"
+#endif
+
// Windows specific constant indicating the maximum number of touch points the
// inject api will allow. This also sets the maximum numerical value for touch
// ids we can use when injecting touch points on Windows.