Skip to content

Commit 47714ef

Browse files
committed
Bug 1694161 - some fixes for the MacOS non unified environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D106616
1 parent 4594e6d commit 47714ef

10 files changed

+19
-2
lines changed

dom/gamepad/GamepadRemapping.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#include "mozilla/dom/GamepadRemapping.h"
1515
#include "mozilla/dom/GamepadPlatformService.h"
1616

17+
#include <vector>
18+
#include <unordered_map>
19+
1720
namespace mozilla::dom {
1821

1922
// Follow the canonical ordering recommendation for the "Standard Gamepad"

dom/gamepad/cocoa/CocoaGamepad.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
#include "mozilla/dom/GamepadHandle.h"
1111
#include "mozilla/dom/GamepadPlatformService.h"
12+
#include "mozilla/dom/GamepadRemapping.h"
13+
#include "mozilla/ipc/BackgroundParent.h"
1214
#include "mozilla/ArrayUtils.h"
15+
#include "mozilla/Tainting.h"
16+
#include "nsComponentManagerUtils.h"
1317
#include "nsITimer.h"
1418
#include "nsThreadUtils.h"
1519
#include <CoreFoundation/CoreFoundation.h>
@@ -605,7 +609,7 @@ namespace mozilla {
605609
namespace dom {
606610

607611
void StartGamepadMonitoring() {
608-
AssertIsOnBackgroundThread();
612+
::mozilla::ipc::AssertIsOnBackgroundThread();
609613
if (gService) {
610614
return;
611615
}
@@ -615,7 +619,7 @@ void StartGamepadMonitoring() {
615619
}
616620

617621
void StopGamepadMonitoring() {
618-
AssertIsOnBackgroundThread();
622+
::mozilla::ipc::AssertIsOnBackgroundThread();
619623
if (!gService) {
620624
return;
621625
}

dom/plugins/base/nsPluginTags.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "mozilla/Preferences.h"
1717
#include "mozilla/Unused.h"
1818
#include "nsNetUtil.h"
19+
#include "prenv.h"
1920
#include <cctype>
2021
#include "mozilla/Encoding.h"
2122
#include "mozilla/dom/FakePluginTagInitBinding.h"

dom/plugins/ipc/PluginInstanceParent.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <stdint.h> // for intptr_t
99

1010
#include "mozilla/BasicEvents.h"
11+
#include "mozilla/D3DMessageUtils.h" // for DxgiAdapterDesc
1112
#include "mozilla/Preferences.h"
1213
#include "mozilla/StaticPrefs_dom.h"
1314
#include "mozilla/Telemetry.h"

gfx/2d/NativeFontResourceMac.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
66

7+
#include <unordered_map>
78
#include <unordered_set>
89
#include "NativeFontResourceMac.h"
910
#include "UnscaledFontMac.h"

gfx/layers/BufferTexture.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include "mozilla/layers/ImageDataSerializer.h"
1818
#include "mozilla/layers/TextureForwarder.h"
1919

20+
#include "gfxPlatform.h"
21+
2022
#ifdef MOZ_WIDGET_GTK
2123
# include "gfxPlatformGtk.h"
2224
#endif

gfx/layers/TextureSync.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "mozilla/layers/CompositorThread.h"
1515
#include "mozilla/StaticMonitor.h"
1616
#include "mozilla/StaticPtr.h"
17+
#include "nsThreadUtils.h"
1718

1819
#ifdef DEBUG
1920
# define LOG_ERROR(str, args...) \

gfx/layers/composite/ImageComposite.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "GeckoProfiler.h"
1212
#include "gfxPlatform.h"
13+
#include "nsPrintfCString.h"
1314

1415
namespace mozilla {
1516

gfx/layers/ipc/ContentCompositorBridgeParent.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "nsTArray.h" // for nsTArray
3737
#include "nsXULAppAPI.h" // for XRE_GetIOMessageLoop
3838
#include "mozilla/Unused.h"
39+
#include "mozilla/StaticPrefs_dom.h"
3940
#include "mozilla/StaticPtr.h"
4041
#include "mozilla/Telemetry.h"
4142
#ifdef MOZ_GECKO_PROFILER

gfx/webrender_bindings/RenderCompositorLayersSWGL.h

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef MOZILLA_GFX_RENDERCOMPOSITOR_Layers_H
88
#define MOZILLA_GFX_RENDERCOMPOSITOR_Layers_H
99

10+
#include <unordered_map>
11+
1012
#include "mozilla/HashFunctions.h"
1113
#include "mozilla/layers/Compositor.h"
1214
#include "mozilla/layers/ScreenshotGrabber.h"

0 commit comments

Comments
 (0)