commit b4524db074672784ca5cc6e73a2e9a56db138a15 parent b596f41b60902b26eb9bf3f4cf7735fbae4bd7dd Author: serge-sans-paille <sguelton@mozilla.com> Date: Thu, 30 Oct 2025 11:54:52 +0000 Bug 1997166 - Remove unused mfbt inclusion in gfx/** r=emilio Differential Revision: https://phabricator.services.mozilla.com/D270649 Diffstat:
63 files changed, 18 insertions(+), 74 deletions(-)
diff --git a/dom/media/platforms/agnostic/bytestreams/H264.h b/dom/media/platforms/agnostic/bytestreams/H264.h @@ -9,6 +9,7 @@ #include "ErrorList.h" #include "mozilla/AlreadyAddRefed.h" +#include "mozilla/Maybe.h" #include "mozilla/Result.h" #include "mozilla/Span.h" #include "mozilla/gfx/Point.h" diff --git a/gfx/2d/DataSurfaceHelpers.cpp b/gfx/2d/DataSurfaceHelpers.cpp @@ -10,7 +10,6 @@ #include "DataSurfaceHelpers.h" #include "Logging.h" #include "mozilla/MathAlgorithms.h" -#include "mozilla/PodOperations.h" #include "Swizzle.h" #include "Tools.h" diff --git a/gfx/2d/DrawTargetOffset.h b/gfx/2d/DrawTargetOffset.h @@ -9,8 +9,6 @@ #include "2D.h" -#include "mozilla/Vector.h" - #include "Filters.h" #include "Logging.h" diff --git a/gfx/2d/Filters.h b/gfx/2d/Filters.h @@ -9,7 +9,6 @@ #include "Types.h" #include "mozilla/RefCounted.h" -#include "mozilla/RefPtr.h" #include "Point.h" #include "Matrix.h" diff --git a/gfx/2d/MacIOSurface.h b/gfx/2d/MacIOSurface.h @@ -39,7 +39,6 @@ typedef realGLboolean GLboolean; # include "2D.h" # include "mozilla/RefCounted.h" -# include "mozilla/RefPtr.h" class MacIOSurface final : public mozilla::external::AtomicRefCounted<MacIOSurface> { diff --git a/gfx/2d/NativeFontResourceGDI.h b/gfx/2d/NativeFontResourceGDI.h @@ -11,7 +11,6 @@ #include "2D.h" #include "mozilla/AlreadyAddRefed.h" -#include "mozilla/Vector.h" namespace mozilla { namespace gfx { diff --git a/gfx/2d/Point.h b/gfx/2d/Point.h @@ -15,7 +15,6 @@ #include "BasePoint3D.h" #include "BasePoint4D.h" #include "BaseSize.h" -#include "mozilla/Maybe.h" #include "mozilla/gfx/NumericTools.h" #include <cmath> diff --git a/gfx/2d/RecordedEventImpl.h b/gfx/2d/RecordedEventImpl.h @@ -18,7 +18,6 @@ #include "SFNTData.h" #include "mozilla/dom/CanvasRenderingContextHelper.h" -#include "mozilla/IntegerRange.h" #include "mozilla/layers/BuildConstants.h" #include "mozilla/layers/LayersSurfaces.h" #include "mozilla/ipc/SerializeToBytesUtil.h" diff --git a/gfx/2d/SkConvolver.h b/gfx/2d/SkConvolver.h @@ -7,7 +7,6 @@ #ifndef MOZILLA_GFX_SKCONVOLVER_H_ #define MOZILLA_GFX_SKCONVOLVER_H_ -#include "mozilla/Assertions.h" #include <cfloat> #include <cmath> #include "mozilla/Vector.h" diff --git a/gfx/config/gfxConfigManager.cpp b/gfx/config/gfxConfigManager.cpp @@ -17,7 +17,6 @@ #include "nsXULAppAPI.h" #ifdef XP_WIN -# include "mozilla/WindowsVersion.h" # include "mozilla/gfx/DeviceManagerDx.h" # include "mozilla/gfx/DisplayConfigWindows.h" #endif diff --git a/gfx/gl/GLContextProvider.h b/gfx/gl/GLContextProvider.h @@ -6,7 +6,7 @@ #ifndef GLCONTEXTPROVIDER_H_ #define GLCONTEXTPROVIDER_H_ -#include "mozilla/AlreadyAddRefed.h" // Used in GLContextProviderImpl.h +#include "mozilla/AlreadyAddRefed.h" #include "GLContextTypes.h" #include "SurfaceTypes.h" @@ -26,6 +26,8 @@ namespace gl { // Null is always there #define GL_CONTEXT_PROVIDER_NAME GLContextProviderNull + +// This header uses `already_AddRefed`. #include "GLContextProviderImpl.h" #undef GL_CONTEXT_PROVIDER_NAME diff --git a/gfx/gl/GLContextProviderGLX.cpp b/gfx/gl/GLContextProviderGLX.cpp @@ -14,7 +14,6 @@ #include <X11/Xutil.h> #include "X11UndefineNone.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/StaticPtr.h" #include "mozilla/layers/CompositorOptions.h" #include "mozilla/Range.h" diff --git a/gfx/gl/GLContextProviderWGL.cpp b/gfx/gl/GLContextProviderWGL.cpp @@ -18,6 +18,7 @@ #include "mozilla/gfx/gfxVars.h" #include "mozilla/Preferences.h" #include "mozilla/ScopeExit.h" +#include "mozilla/SharedLibrary.h" #include "mozilla/StaticPrefs_gl.h" #include "mozilla/StaticPtr.h" #include "mozilla/layers/CompositorOptions.h" diff --git a/gfx/gl/GLLibraryLoader.h b/gfx/gl/GLLibraryLoader.h @@ -10,8 +10,8 @@ #include "GLDefs.h" #include "nscore.h" +#include "prlink.h" #include "mozilla/Assertions.h" -#include "mozilla/SharedLibrary.h" namespace mozilla { namespace gl { diff --git a/gfx/gl/GLReadTexImageHelper.h b/gfx/gl/GLReadTexImageHelper.h @@ -9,7 +9,7 @@ #include "GLContextTypes.h" #include "nsSize.h" -#include "mozilla/RefPtr.h" +#include "mozilla/AlreadyAddRefed.h" #include "mozilla/gfx/MatrixFwd.h" #include "mozilla/gfx/Types.h" diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp @@ -77,7 +77,6 @@ # include "gfxDWriteFonts.h" # include "gfxWindowsPlatform.h" -# include "mozilla/WindowsVersion.h" # include "mozilla/gfx/DeviceManagerDx.h" # include "mozilla/layers/CompositeProcessD3D11FencesHolderMap.h" # include "mozilla/layers/GpuProcessD3D11TextureMap.h" diff --git a/gfx/ipc/GPUProcessHost.h b/gfx/ipc/GPUProcessHost.h @@ -7,7 +7,6 @@ #ifndef _include_mozilla_gfx_ipc_GPUProcessHost_h_ #define _include_mozilla_gfx_ipc_GPUProcessHost_h_ -#include "mozilla/Maybe.h" #include "mozilla/UniquePtr.h" #include "mozilla/gfx/Types.h" #include "mozilla/ipc/GeckoChildProcessHost.h" diff --git a/gfx/layers/AtomicRefCountedWithFinalize.h b/gfx/layers/AtomicRefCountedWithFinalize.h @@ -8,7 +8,6 @@ #define MOZILLA_ATOMICREFCOUNTEDWITHFINALIZE_H_ #include "mozilla/RefPtr.h" -#include "mozilla/Likely.h" #include "MainThreadUtils.h" #include "base/message_loop.h" #include "base/task.h" diff --git a/gfx/layers/BufferTexture.h b/gfx/layers/BufferTexture.h @@ -7,7 +7,6 @@ #ifndef MOZILLA_LAYERS_BUFFERETEXTURE #define MOZILLA_LAYERS_BUFFERETEXTURE -#include "mozilla/RefPtr.h" #include "mozilla/gfx/2D.h" #include "mozilla/gfx/Types.h" #include "mozilla/layers/TextureClient.h" diff --git a/gfx/layers/Compositor.h b/gfx/layers/Compositor.h @@ -9,7 +9,6 @@ #include "Units.h" // for ScreenPoint #include "mozilla/Assertions.h" // for MOZ_ASSERT, etc -#include "mozilla/RefPtr.h" // for already_AddRefed, RefCounted #include "mozilla/gfx/2D.h" // for DrawTarget #include "mozilla/gfx/MatrixFwd.h" // for Matrix, Matrix4x4 #include "mozilla/gfx/Point.h" // for IntSize, Point diff --git a/gfx/layers/D3D11YCbCrImage.h b/gfx/layers/D3D11YCbCrImage.h @@ -9,7 +9,6 @@ #include "d3d11.h" #include "mozilla/layers/TextureClientRecycleAllocator.h" -#include "mozilla/Maybe.h" #include "ImageContainer.h" namespace mozilla { diff --git a/gfx/layers/DMABUFSurfaceImage.cpp b/gfx/layers/DMABUFSurfaceImage.cpp @@ -10,7 +10,6 @@ #include "mozilla/layers/CompositableForwarder.h" #include "mozilla/layers/DMABUFTextureClientOGL.h" #include "mozilla/layers/TextureForwarder.h" -#include "mozilla/ScopeExit.h" #include "mozilla/StaticMutex.h" #include "GLContext.h" #include "GLContextProvider.h" diff --git a/gfx/layers/ImageDataSerializer.h b/gfx/layers/ImageDataSerializer.h @@ -9,7 +9,6 @@ #include <stdint.h> // for uint8_t, uint32_t #include "mozilla/Attributes.h" // for MOZ_STACK_CLASS -#include "mozilla/RefPtr.h" // for already_AddRefed #include "mozilla/gfx/Point.h" // for IntSize #include "mozilla/gfx/Rect.h" // for IntRect #include "mozilla/gfx/Types.h" // for SurfaceFormat diff --git a/gfx/layers/RemoteTextureMap.h b/gfx/layers/RemoteTextureMap.h @@ -24,7 +24,6 @@ #include "mozilla/layers/TextureHost.h" #include "mozilla/Monitor.h" #include "mozilla/StaticPtr.h" -#include "mozilla/ThreadSafeWeakPtr.h" #include "mozilla/UniquePtr.h" #include "mozilla/webrender/WebRenderTypes.h" diff --git a/gfx/layers/ScreenshotGrabber.h b/gfx/layers/ScreenshotGrabber.h @@ -8,7 +8,6 @@ #define mozilla_layers_ScreenshotGrabber_h #include "nsISupportsImpl.h" -#include "mozilla/RefPtr.h" #include "mozilla/UniquePtr.h" #include "mozilla/gfx/2D.h" #include "mozilla/gfx/Point.h" diff --git a/gfx/layers/SurfacePool.h b/gfx/layers/SurfacePool.h @@ -7,7 +7,6 @@ #define mozilla_layers_SurfacePool_h #include "mozilla/Maybe.h" -#include "mozilla/ThreadSafeWeakPtr.h" #include "GLTypes.h" #include "nsISupportsImpl.h" diff --git a/gfx/layers/ZoomConstraints.h b/gfx/layers/ZoomConstraints.h @@ -9,8 +9,7 @@ #include <iosfwd> -#include "Units.h" // for CSSRect, CSSPixel, etc -#include "mozilla/Maybe.h" +#include "Units.h" // for CSSRect, CSSPixel, etc #include "mozilla/layers/ScrollableLayerGuid.h" // for ScrollableLayerGuid namespace mozilla { diff --git a/gfx/layers/apz/public/CompositorController.h b/gfx/layers/apz/public/CompositorController.h @@ -8,7 +8,6 @@ #define mozilla_layers_CompositorController_h #include "nsISupportsImpl.h" // for NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING -#include "mozilla/Maybe.h" #include "mozilla/webrender/WebRenderTypes.h" namespace mozilla { diff --git a/gfx/layers/apz/public/GeckoContentController.h b/gfx/layers/apz/public/GeckoContentController.h @@ -11,7 +11,6 @@ #include "InputData.h" // for PinchGestureInput #include "LayersTypes.h" // for ScrollDirection #include "Units.h" // for CSSPoint, CSSRect, etc -#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2 #include "mozilla/Attributes.h" // for MOZ_CAN_RUN_SCRIPT #include "mozilla/DefineEnum.h" // for MOZ_DEFINE_ENUM #include "mozilla/EventForwards.h" // for Modifiers diff --git a/gfx/layers/apz/src/APZPublicUtils.cpp b/gfx/layers/apz/src/APZPublicUtils.cpp @@ -8,7 +8,6 @@ #include "AsyncPanZoomController.h" #include "nsLayoutUtils.h" -#include "mozilla/HelperMacros.h" #include "mozilla/StaticPrefs_general.h" namespace mozilla { diff --git a/gfx/layers/apz/src/AndroidFlingPhysics.h b/gfx/layers/apz/src/AndroidFlingPhysics.h @@ -9,7 +9,6 @@ #include "AsyncPanZoomController.h" #include "Units.h" -#include "mozilla/Assertions.h" namespace mozilla { namespace layers { diff --git a/gfx/layers/apz/src/DesktopFlingPhysics.h b/gfx/layers/apz/src/DesktopFlingPhysics.h @@ -9,7 +9,6 @@ #include "AsyncPanZoomController.h" #include "Units.h" -#include "mozilla/Assertions.h" #include "mozilla/StaticPrefs_apz.h" namespace mozilla { diff --git a/gfx/layers/client/CanvasClient.h b/gfx/layers/client/CanvasClient.h @@ -15,8 +15,6 @@ #include "mozilla/layers/TextureClient.h" // for TextureClient, etc #include "mozilla/layers/PersistentBufferProvider.h" -#include "mozilla/MaybeOneOf.h" - #include "mozilla/mozalloc.h" // for operator delete #include "mozilla/gfx/Point.h" // for IntSize diff --git a/gfx/layers/composite/FrameUniformityData.h b/gfx/layers/composite/FrameUniformityData.h @@ -10,7 +10,6 @@ #include "ipc/IPCMessageUtils.h" #include "js/TypeDecls.h" #include "ipc/IPCMessageUtilsSpecializations.h" -#include "mozilla/RefPtr.h" #include "nsTArray.h" namespace mozilla { diff --git a/gfx/layers/d3d11/CompositeProcessD3D11FencesHolderMap.h b/gfx/layers/d3d11/CompositeProcessD3D11FencesHolderMap.h @@ -12,7 +12,6 @@ #include "mozilla/gfx/FileHandleWrapper.h" #include "mozilla/layers/LayersTypes.h" -#include "mozilla/Maybe.h" #include "mozilla/Monitor.h" #include "mozilla/StaticPtr.h" diff --git a/gfx/layers/ipc/CanvasChild.cpp b/gfx/layers/ipc/CanvasChild.cpp @@ -24,7 +24,6 @@ #include "mozilla/layers/ImageDataSerializer.h" #include "mozilla/layers/SourceSurfaceSharedData.h" #include "mozilla/AppShutdown.h" -#include "mozilla/Maybe.h" #include "mozilla/Mutex.h" #include "mozilla/StaticPrefs_gfx.h" #include "nsIObserverService.h" diff --git a/gfx/layers/ipc/CompositorBridgeChild.h b/gfx/layers/ipc/CompositorBridgeChild.h @@ -7,8 +7,7 @@ #ifndef mozilla_layers_CompositorBridgeChild_h #define mozilla_layers_CompositorBridgeChild_h -#include "base/basictypes.h" // for DISALLOW_EVIL_CONSTRUCTORS -#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2 +#include "base/basictypes.h" // for DISALLOW_EVIL_CONSTRUCTORS #include "mozilla/Monitor.h" #include "mozilla/ipc/ProtocolUtils.h" #include "mozilla/layers/PCompositorBridgeChild.h" diff --git a/gfx/layers/ipc/CompositorBridgeParent.cpp b/gfx/layers/ipc/CompositorBridgeParent.cpp @@ -72,7 +72,6 @@ #ifdef XP_WIN # include "mozilla/layers/CompositorD3D11.h" # include "mozilla/widget/WinCompositorWidget.h" -# include "mozilla/WindowsVersion.h" #endif #include "mozilla/ipc/ProtocolTypes.h" #include "mozilla/Hal.h" diff --git a/gfx/layers/ipc/CompositorBridgeParent.h b/gfx/layers/ipc/CompositorBridgeParent.h @@ -9,7 +9,6 @@ #include <stdint.h> // for uint64_t #include <unordered_map> -#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2 #include "mozilla/Maybe.h" #include "mozilla/Monitor.h" // for Monitor #include "mozilla/RefPtr.h" // for RefPtr diff --git a/gfx/layers/ipc/CompositorManagerChild.h b/gfx/layers/ipc/CompositorManagerChild.h @@ -9,7 +9,6 @@ #include <stddef.h> // for size_t #include <stdint.h> // for uint32_t, uint64_t -#include "mozilla/RefPtr.h" // for already_AddRefed #include "mozilla/StaticPtr.h" // for StaticRefPtr #include "mozilla/layers/CompositableForwarder.h" // for FwdTransactionCounter #include "mozilla/layers/PCompositorManagerChild.h" diff --git a/gfx/layers/ipc/ISurfaceAllocator.h b/gfx/layers/ipc/ISurfaceAllocator.h @@ -11,8 +11,7 @@ #include <stdint.h> // for uint32_t #include "gfxTypes.h" #include "mozilla/dom/ipc/IdType.h" -#include "mozilla/gfx/Point.h" // for IntSize -#include "mozilla/RefPtr.h" +#include "mozilla/gfx/Point.h" // for IntSize #include "nsIMemoryReporter.h" // for nsIMemoryReporter #include "mozilla/Atomics.h" // for Atomic #include "mozilla/layers/LayersMessages.h" // for ShmemSection diff --git a/gfx/layers/ipc/ImageBridgeParent.h b/gfx/layers/ipc/ImageBridgeParent.h @@ -10,7 +10,6 @@ #include <stddef.h> // for size_t #include <stdint.h> // for uint32_t, uint64_t #include "CompositableTransactionParent.h" -#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2 #include "mozilla/dom/ipc/IdType.h" #include "mozilla/ipc/ProtocolUtils.h" #include "mozilla/layers/CompositorThread.h" diff --git a/gfx/layers/wr/WebRenderBridgeParent.h b/gfx/layers/wr/WebRenderBridgeParent.h @@ -18,7 +18,6 @@ #include "mozilla/layers/PWebRenderBridgeParent.h" #include "mozilla/HashTable.h" #include "mozilla/Maybe.h" -#include "mozilla/Result.h" #include "mozilla/UniquePtr.h" #include "mozilla/webrender/WebRenderTypes.h" #include "mozilla/webrender/WebRenderAPI.h" diff --git a/gfx/layers/wr/WebRenderImageHost.h b/gfx/layers/wr/WebRenderImageHost.h @@ -12,7 +12,6 @@ #include "CompositableHost.h" // for CompositableHost #include "mozilla/layers/ImageComposite.h" // for ImageComposite -#include "mozilla/WeakPtr.h" #include "mozilla/webrender/RenderTextureHost.h" namespace mozilla { diff --git a/gfx/layers/wr/WebRenderScrollData.cpp b/gfx/layers/wr/WebRenderScrollData.cpp @@ -12,7 +12,6 @@ #include "mozilla/layers/LayersMessageUtils.h" #include "mozilla/layers/WebRenderLayerManager.h" #include "mozilla/ScrollContainerFrame.h" -#include "mozilla/ToString.h" #include "nsDisplayList.h" #include "nsTArray.h" #include "UnitTransforms.h" diff --git a/gfx/src/nsColor.cpp b/gfx/src/nsColor.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/mozalloc.h" // for operator delete, etc -#include "mozilla/MathAlgorithms.h" #include "nsColor.h" #include <sys/types.h> // for int32_t diff --git a/gfx/src/nsFontMetrics.h b/gfx/src/nsFontMetrics.h @@ -6,15 +6,14 @@ #ifndef NSFONTMETRICS__H__ #define NSFONTMETRICS__H__ -#include <stdint.h> // for uint32_t -#include <sys/types.h> // for int32_t -#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2 -#include "mozilla/RefPtr.h" // for RefPtr -#include "nsCOMPtr.h" // for nsCOMPtr -#include "nsCoord.h" // for nscoord -#include "nsError.h" // for nsresult -#include "nsFont.h" // for nsFont -#include "nsISupports.h" // for NS_INLINE_DECL_REFCOUNTING +#include <stdint.h> // for uint32_t +#include <sys/types.h> // for int32_t +#include "mozilla/RefPtr.h" // for RefPtr +#include "nsCOMPtr.h" // for nsCOMPtr +#include "nsCoord.h" // for nscoord +#include "nsError.h" // for nsresult +#include "nsFont.h" // for nsFont +#include "nsISupports.h" // for NS_INLINE_DECL_REFCOUNTING #include "nsStyleConsts.h" #include "nscore.h" // for char16_t diff --git a/gfx/thebes/AndroidSystemFontIterator.cpp b/gfx/thebes/AndroidSystemFontIterator.cpp @@ -5,7 +5,6 @@ #include "AndroidSystemFontIterator.h" -#include "mozilla/Assertions.h" #include "nsDebug.h" namespace mozilla { diff --git a/gfx/thebes/SharedFontList-impl.h b/gfx/thebes/SharedFontList-impl.h @@ -12,7 +12,6 @@ #include "nsClassHashtable.h" #include "nsTHashMap.h" #include "nsXULAppAPI.h" -#include "mozilla/RefPtr.h" #include "mozilla/UniquePtr.h" #include "mozilla/ipc/SharedMemoryMapping.h" diff --git a/gfx/thebes/gfxDWriteFontList.cpp b/gfx/thebes/gfxDWriteFontList.cpp @@ -22,7 +22,6 @@ #include "mozilla/StaticPrefs_gfx.h" #include "mozilla/glean/GfxMetrics.h" #include "mozilla/WindowsProcessMitigations.h" -#include "mozilla/WindowsVersion.h" #include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceDefs.h" #include "nsAppDirectoryServiceDefs.h" diff --git a/gfx/thebes/gfxDWriteFontList.h b/gfx/thebes/gfxDWriteFontList.h @@ -7,7 +7,6 @@ #define GFX_DWRITEFONTLIST_H #include "mozilla/FontPropertyTypes.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/MemoryReporting.h" #include "gfxDWriteCommon.h" #include "dwrite_3.h" diff --git a/gfx/thebes/gfxFT2Utils.h b/gfx/thebes/gfxFT2Utils.h @@ -8,7 +8,6 @@ #include "cairo-ft.h" #include "gfxFT2FontBase.h" -#include "mozilla/Likely.h" // Rounding and truncation functions for a FreeType fixed point number // (FT26Dot6) stored in a 32bit integer with high 26 bits for the integer diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp @@ -10,7 +10,6 @@ #include "mozilla/gfx/2D.h" #include "mozilla/IntegerRange.h" #include "mozilla/intl/Segmenter.h" -#include "mozilla/MathAlgorithms.h" #include "mozilla/StaticPrefs_gfx.h" #include "mozilla/ScopeExit.h" #include "mozilla/SVGContextPaint.h" diff --git a/gfx/thebes/gfxFont.h b/gfx/thebes/gfxFont.h @@ -20,7 +20,6 @@ #include "mozilla/FontPropertyTypes.h" #include "mozilla/HashTable.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/MruCache.h" #include "mozilla/Mutex.h" #include "mozilla/RefPtr.h" #include "mozilla/RWLock.h" diff --git a/gfx/thebes/gfxFontEntry.cpp b/gfx/thebes/gfxFontEntry.cpp @@ -30,7 +30,6 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/Preferences.h" #include "mozilla/ProfilerLabels.h" -#include "mozilla/ScopeExit.h" #include "mozilla/Services.h" #include "mozilla/StaticPrefs_layout.h" #include "gfxSVGGlyphs.h" diff --git a/gfx/thebes/gfxFontSrcPrincipal.cpp b/gfx/thebes/gfxFontSrcPrincipal.cpp @@ -7,7 +7,6 @@ #include "nsURIHashKey.h" #include "mozilla/BasePrincipal.h" -#include "mozilla/HashFunctions.h" using mozilla::BasePrincipal; diff --git a/gfx/thebes/gfxMacPlatformFontList.mm b/gfx/thebes/gfxMacPlatformFontList.mm @@ -34,7 +34,6 @@ #include "mozilla/dom/ContentChild.h" #include "mozilla/dom/ContentParent.h" #include "mozilla/FontPropertyTypes.h" -#include "mozilla/MemoryReporting.h" #include "mozilla/Preferences.h" #include "mozilla/ProfilerLabels.h" #include "mozilla/Sprintf.h" diff --git a/gfx/thebes/gfxPlatformFontList.cpp b/gfx/thebes/gfxPlatformFontList.cpp @@ -41,7 +41,6 @@ #include "mozilla/dom/Document.h" #include "mozilla/gfx/2D.h" #include "mozilla/ipc/FileDescriptorUtils.h" -#include "mozilla/ResultExtensions.h" #include "mozilla/TextUtils.h" #include "base/eintr_wrapper.h" diff --git a/gfx/thebes/gfxUtils.h b/gfx/thebes/gfxUtils.h @@ -13,7 +13,6 @@ #include "imgIContainer.h" #include "mozilla/gfx/2D.h" #include "mozilla/Maybe.h" -#include "mozilla/RefPtr.h" #include "mozilla/UniquePtr.h" #include "nsColor.h" #include "nsContentUtils.h" diff --git a/gfx/thebes/gfxWindowsPlatform.h b/gfx/thebes/gfxWindowsPlatform.h @@ -19,7 +19,6 @@ #include "nsTArray.h" #include "mozilla/Mutex.h" -#include "mozilla/RefPtr.h" #include <windows.h> #include <objbase.h> diff --git a/gfx/vr/gfxVR.h b/gfx/vr/gfxVR.h @@ -15,7 +15,6 @@ #include "mozilla/gfx/2D.h" #include "mozilla/TiedFields.h" #include "mozilla/TimeStamp.h" -#include "mozilla/TypedEnumBits.h" #include <type_traits> namespace mozilla { diff --git a/gfx/vr/ipc/VRLayerParent.h b/gfx/vr/ipc/VRLayerParent.h @@ -7,7 +7,6 @@ #ifndef GFX_VR_LAYERPARENT_H #define GFX_VR_LAYERPARENT_H -#include "mozilla/RefPtr.h" #include "mozilla/gfx/PVRLayerParent.h" #include "gfxVR.h" diff --git a/gfx/webrender_bindings/RenderCompositorANGLE.cpp b/gfx/webrender_bindings/RenderCompositorANGLE.cpp @@ -23,7 +23,6 @@ #include "mozilla/webrender/RenderThread.h" #include "mozilla/widget/CompositorWidget.h" #include "mozilla/widget/WinCompositorWidget.h" -#include "mozilla/WindowsVersion.h" #include "mozilla/glean/GfxMetrics.h" #include "nsPrintfCString.h" #include "FxROutputHandler.h"