Bug 924221 - Minimize the #includes in gfx/thebes; r=bjacob

--HG--
extra : rebase_source : af198eb9b9739ce718ba0d16c385624a722cde51
This commit is contained in:
Ehsan Akhgari 2013-10-07 19:15:59 -04:00
parent 7fe24bf67e
commit a23cd291d5
108 changed files with 167 additions and 165 deletions

View File

@ -15,6 +15,7 @@
#include "nsLayoutUtils.h"
#include "HyperTextAccessible.h"
#include "mozilla/AppUnits.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;
using namespace mozilla::a11y;

View File

@ -17,6 +17,7 @@
#include "nsLayoutUtils.h"
#include "gfxFont.h"
#include "nsIAccessibleTypes.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla::a11y;

View File

@ -9,6 +9,7 @@
#include "gfxFont.h" // for the gfxTextRun::CompressedGlyph::FLAG_BREAK_TYPE_* values
#include "nsHyphenationManager.h"
#include "nsHyphenator.h"
#include "mozilla/gfx/2D.h"
nsLineBreaker::nsLineBreaker()
: mCurrentWordLanguage(nullptr),

View File

@ -20,6 +20,8 @@
#include "mozilla/dom/CanvasRenderingContext2DBinding.h"
#include "mozilla/dom/CanvasPattern.h"
#include "mozilla/gfx/Rect.h"
#include "mozilla/gfx/2D.h"
#include "gfx2DGlue.h"
class nsXULElement;

View File

@ -19,6 +19,7 @@
#include "SVGAnimationElement.h"
#include "SVGAnimatedPreserveAspectRatio.h"
#include "nsContentUtils.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -6,6 +6,7 @@
#include "mozilla/dom/SVGFEFloodElement.h"
#include "mozilla/dom/SVGFEFloodElementBinding.h"
#include "gfxContext.h"
#include "gfxColor.h"
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT(FEFlood)

View File

@ -12,6 +12,7 @@
#include <stdarg.h>
#include "SVGContentUtils.h"
#include "SVGPathSegUtils.h"
#include "gfxContext.h"
#include <algorithm>
using namespace mozilla;

View File

@ -23,12 +23,14 @@
#include "SurfaceStream.h"
#include "GfxTexturesReporter.h"
#include "TextureGarbageBin.h"
#include "gfx2DGlue.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/Preferences.h"
#ifdef XP_MACOSX
#include <CoreServices/CoreServices.h>
#include "gfxColor.h"
#endif
#if defined(MOZ_WIDGET_COCOA)

View File

@ -30,6 +30,7 @@
#include "mozilla/layers/ShadowLayers.h" // for ShadowableLayer
#include "mozilla/layers/TextureClient.h" // for DeprecatedTextureClient
#include "nsSize.h" // for nsIntSize
#include "gfx2DGlue.h"
namespace mozilla {

View File

@ -30,6 +30,7 @@
#ifdef XP_WIN
#include "gfxWindowsPlatform.h"
#endif
#include "gfx2DGlue.h"
namespace mozilla {

View File

@ -21,6 +21,7 @@
#include "nsSize.h" // for nsIntSize
#include "gfxReusableSharedImageSurfaceWrapper.h"
#include "nsMathUtils.h" // for NS_roundf
#include "gfx2DGlue.h"
#ifdef GFX_TILEDLAYER_DEBUG_OVERLAY
#include "cairo.h"

View File

@ -15,6 +15,7 @@
#include "nsUnicharUtils.h"
#include "nscore.h" // for PRUnichar
#include "prtypes.h" // for PR_STATIC_ASSERT
#include "mozilla/gfx/2D.h"
nsFont::nsFont(const char* aName, uint8_t aStyle, uint8_t aVariant,
uint16_t aWeight, int16_t aStretch, uint8_t aDecoration,

View File

@ -14,6 +14,7 @@
#include "mozilla/gfx/Matrix.h"
#include "mozilla/gfx/Rect.h"
#include "mozilla/gfx/2D.h"
#include "gfxColor.h"
namespace mozilla {
namespace gfx {

View File

@ -47,7 +47,6 @@
#include "nsComponentManagerUtils.h"
#include "nsISupportsUtils.h"
#include "nsCOMPtr.h"
#include "nsIConsoleService.h"
#include "nsServiceManagerUtils.h"
#include "nsString.h"
#include "nsIClipboardHelper.h"

View File

@ -6,11 +6,12 @@
#ifndef _GFXALPHARECOVERY_H_
#define _GFXALPHARECOVERY_H_
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "mozilla/SSE.h"
#include "gfxTypes.h"
#include "nsRect.h"
struct nsIntRect;
class gfxImageSurface;
class gfxAlphaRecovery {
public:

View File

@ -3,8 +3,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/SSE.h"
#include "gfxAlphaRecovery.h"
#include "gfxImageSurface.h"
#include "nsRect.h"
#include <emmintrin.h>
// This file should only be compiled on x86 and x64 systems. Additionally,

View File

@ -17,6 +17,7 @@
#include "nsIScreen.h"
#include "nsIScreenManager.h"
#include "nsILocaleService.h"
#include "nsServiceManagerUtils.h"
#include "cairo.h"

View File

@ -4,7 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxSharedImageSurface.h"
#include "gfxBaseSharedMemorySurface.h"
#include "cairo.h"
const cairo_user_data_key_t SHM_KEY = {0};

View File

@ -9,12 +9,13 @@
#include "mozilla/ipc/Shmem.h"
#include "mozilla/ipc/SharedMemory.h"
#include "cairo.h"
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "pratom.h"
typedef struct _cairo_user_data_key cairo_user_data_key_t;
struct SharedImageInfo {
int32_t width;
int32_t height;

View File

@ -4,6 +4,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxBlur.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "mozilla/gfx/Blur.h"

View File

@ -6,9 +6,14 @@
#ifndef GFX_BLUR_H
#define GFX_BLUR_H
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "gfxTypes.h"
#include "nsSize.h"
#include "nsAutoPtr.h"
#include "gfxPoint.h"
class gfxContext;
class gfxImageSurface;
struct gfxRect;
namespace mozilla {
namespace gfx {

View File

@ -9,7 +9,6 @@
#include <math.h>
#include "mozilla/Alignment.h"
#include "mozilla/Constants.h"
#include "cairo.h"
@ -22,6 +21,7 @@
#include "gfxPlatform.h"
#include "gfxTeeSurface.h"
#include "GeckoProfiler.h"
#include "gfx2DGlue.h"
#include <algorithm>
#if CAIRO_HAS_DWRITE_FONT

View File

@ -9,14 +9,13 @@
#include "gfxTypes.h"
#include "gfxASurface.h"
#include "gfxColor.h"
#include "gfxPoint.h"
#include "gfxRect.h"
#include "gfxMatrix.h"
#include "gfxPattern.h"
#include "gfxPath.h"
#include "nsISupportsImpl.h"
#include "nsTArray.h"
#include "nsAutoPtr.h"
#include "mozilla/gfx/2D.h"

View File

@ -4,29 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/Util.h"
#include "nsAlgorithm.h"
#include "nsString.h"
#include "nsBidiUtils.h"
#include "gfxTypes.h"
#include "nsPromiseFlatString.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "gfxPlatformMac.h"
#include "gfxCoreTextShaper.h"
#include "gfxMacFont.h"
#include "gfxFontTest.h"
#include "gfxFontUtils.h"
#include "mozilla/gfx/2D.h"
#include "gfxQuartzSurface.h"
#include "gfxMacPlatformFontList.h"
#include "gfxUserFontSet.h"
#include "nsUnicodeRange.h"
#include <algorithm>
using namespace mozilla;

View File

@ -6,13 +6,9 @@
#ifndef GFX_CORETEXTSHAPER_H
#define GFX_CORETEXTSHAPER_H
#include "gfxTypes.h"
#include "gfxFont.h"
#include "gfxFontUtils.h"
#include "gfxPlatform.h"
#include "gfxMacPlatformFontList.h"
#include <Carbon/Carbon.h>
#include <ApplicationServices/ApplicationServices.h>
class gfxMacFont;

View File

@ -7,7 +7,6 @@
#include "gfxASurface.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "mozilla/arm.h"
#ifdef MOZ_X11
#include "cairo.h"
#include "gfxXlibSurface.h"

View File

@ -6,11 +6,8 @@
#ifndef GFX_DRAWABLE_H
#define GFX_DRAWABLE_H
#include "nsISupportsImpl.h"
#include "nsAutoPtr.h"
#include "gfxTypes.h"
#include "gfxRect.h"
#include "gfxColor.h"
#include "gfxMatrix.h"
#include "GraphicsFilter.h"

View File

@ -7,6 +7,7 @@
#include "gfxFT2Utils.h"
#include "harfbuzz/hb.h"
#include "mozilla/Likely.h"
#include "gfxFontConstants.h"
using namespace mozilla::gfx;

View File

@ -52,6 +52,7 @@
#include "nsAppDirectoryServiceDefs.h"
#include "nsISimpleEnumerator.h"
#include "nsIMemory.h"
#include "gfxFontConstants.h"
#include "mozilla/Preferences.h"
#include "mozilla/scache/StartupCache.h"

View File

@ -12,7 +12,6 @@
#include "prlog.h"
#include "nsServiceManagerUtils.h"
#include "nsReadableUtils.h"
#include "nsExpirationTracker.h"
#include "nsILanguageAtomService.h"
#include "nsITimer.h"
@ -22,7 +21,6 @@
#include "nsGkAtoms.h"
#include "gfxTypes.h"
#include "nsAlgorithm.h"
#include "gfxContext.h"
#include "gfxFontMissingGlyphs.h"
#include "gfxUserFontSet.h"
@ -40,6 +38,7 @@
#include "mozilla/Services.h"
#include "mozilla/Telemetry.h"
#include "gfxSVGGlyphs.h"
#include "gfx2DGlue.h"
#include "cairo.h"
#include "gfxFontTest.h"
@ -50,6 +49,7 @@
#include "nsCRT.h"
#include "GeckoProfiler.h"
#include "gfxFontConstants.h"
#include <algorithm>

View File

@ -6,7 +6,6 @@
#ifndef GFX_FONT_H
#define GFX_FONT_H
#include "nsAlgorithm.h"
#include "gfxTypes.h"
#include "nsString.h"
#include "gfxPoint.h"
@ -17,22 +16,19 @@
#include "gfxSkipChars.h"
#include "gfxRect.h"
#include "nsExpirationTracker.h"
#include "gfxFontConstants.h"
#include "gfxPlatform.h"
#include "nsIAtom.h"
#include "nsISupportsImpl.h"
#include "gfxPattern.h"
#include "mozilla/HashFunctions.h"
#include "nsIMemoryReporter.h"
#include "nsIObserver.h"
#include "gfxFontFeatures.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/Attributes.h"
#include <algorithm>
#include "nsUnicodeProperties.h"
#include "harfbuzz/hb.h"
#include "DrawMode.h"
#include "nsUnicodeScriptCodes.h"
#include "nsDataHashtable.h"
#include "harfbuzz/hb.h"
typedef struct _cairo_scaled_font cairo_scaled_font_t;
typedef struct gr_face gr_face;
@ -62,6 +58,12 @@ class nsILanguageAtomService;
struct FontListSizes;
struct gfxTextRunDrawCallbacks;
namespace mozilla {
namespace gfx {
class GlyphRenderingOptions;
}
}
struct gfxFontStyle {
gfxFontStyle();
gfxFontStyle(uint8_t aStyle, uint16_t aWeight, int16_t aStretch,

View File

@ -7,7 +7,6 @@
#ifndef GFX_FONT_FEATURES_H
#define GFX_FONT_FEATURES_H
#include "gfxTypes.h"
#include "nsTHashtable.h"
#include "nsTArray.h"
#include "nsString.h"

View File

@ -5,6 +5,8 @@
#include "gfxFontMissingGlyphs.h"
#include "nsDeviceContext.h"
#include "gfxContext.h"
#include "gfxColor.h"
#define CHAR_BITS(b00, b01, b02, b10, b11, b12, b20, b21, b22, b30, b31, b32, b40, b41, b42) \
((b00 << 0) | (b01 << 1) | (b02 << 2) | (b10 << 3) | (b11 << 4) | (b12 << 5) | \

View File

@ -7,9 +7,10 @@
#define GFX_FONTMISSINGGLYPHS_H
#include "gfxTypes.h"
#include "gfxContext.h"
#include "gfxRect.h"
class gfxContext;
/**
* This class should not be instantiated. It's just a container
* for some helper functions.

View File

@ -11,9 +11,6 @@
#include "cairo/cairo.h"
#include "gfxFont.h"
#include "gfxUserFontSet.h"
struct gfxFontTestItem {
gfxFontTestItem(const nsCString& fontName,
cairo_glyph_t *cglyphs, int nglyphs)

View File

@ -5,8 +5,8 @@
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"
#endif
#include "mozilla/Util.h"
@ -17,7 +17,6 @@
#include "mozilla/Preferences.h"
#include "nsIUUIDGenerator.h"
#include "nsMemory.h"
#include "nsICharsetConverterManager.h"
#include "harfbuzz/hb.h"
@ -25,10 +24,6 @@
#include "plbase64.h"
#include "prlog.h"
#ifdef XP_MACOSX
#include <CoreFoundation/CoreFoundation.h>
#endif
#ifdef PR_LOGGING
#define LOG(log, args) PR_LOG(gfxPlatform::GetLog(log), \
@ -1429,4 +1424,4 @@ gfxFontUtils::IsCffFont(const uint8_t* aFontData)
return (sfntHeader->sfntVersion == TRUETYPE_TAG('O','T','T','O'));
}
#endif
#endif

View File

@ -6,14 +6,7 @@
#ifndef GFX_FONT_UTILS_H
#define GFX_FONT_UTILS_H
#include "gfxTypes.h"
#include "gfxPlatform.h"
#include "nsAlgorithm.h"
#include "prcpucfg.h"
#include "nsDataHashtable.h"
#include "nsITimer.h"
#include "nsCOMPtr.h"
#include "nsComponentManagerUtils.h"

View File

@ -19,6 +19,8 @@
#include "nsIAtom.h"
#include "nsCRT.h"
#include "gfxFontConstants.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;

View File

@ -16,6 +16,7 @@
#include "gfxContext.h"
#include "mozilla/Preferences.h"
#include "nsUnicodeProperties.h"
#include "gfxFontConstants.h"
#include "cairo-win32.h"

View File

@ -26,6 +26,7 @@
#include "nsAppDirectoryServiceDefs.h"
#include "nsISimpleEnumerator.h"
#include "nsIWindowsRegKey.h"
#include "gfxFontConstants.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/Telemetry.h"

View File

@ -3,27 +3,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsString.h"
#include "nsBidiUtils.h"
#include "nsMathUtils.h"
#include "gfxTypes.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "gfxGraphiteShaper.h"
#include "gfxFontUtils.h"
#include "nsString.h"
#include "gfxContext.h"
#include "graphite2/Font.h"
#include "graphite2/Segment.h"
#include "harfbuzz/hb.h"
#include "cairo.h"
#include "nsUnicodeRange.h"
#include "nsCRT.h"
#define FloatToFixed(f) (65536 * (f))
#define FixedToFloat(f) ((f) * (1.0 / 65536.0))
// Right shifts of negative (signed) integers are undefined, as are overflows

View File

@ -6,10 +6,7 @@
#ifndef GFX_GRAPHITESHAPER_H
#define GFX_GRAPHITESHAPER_H
#include "gfxTypes.h"
#include "gfxFont.h"
#include "nsDataHashtable.h"
#include "nsHashKeys.h"
struct gr_face;
struct gr_font;

View File

@ -3,15 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsAlgorithm.h"
#include "nsString.h"
#include "nsBidiUtils.h"
#include "nsMathUtils.h"
#include "gfxTypes.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "gfxHarfBuzzShaper.h"
#include "gfxFontUtils.h"
#include "nsUnicodeProperties.h"
@ -21,9 +14,6 @@
#include "harfbuzz/hb.h"
#include "harfbuzz/hb-ot.h"
#include "cairo.h"
#include "nsCRT.h"
#include <algorithm>
#define FloatToFixed(f) (65536 * (f))

View File

@ -6,10 +6,7 @@
#ifndef GFX_HARFBUZZSHAPER_H
#define GFX_HARFBUZZSHAPER_H
#include "gfxTypes.h"
#include "gfxFont.h"
#include "nsDataHashtable.h"
#include "nsPoint.h"
#include "harfbuzz/hb.h"

View File

@ -5,7 +5,9 @@
#include "mozilla/MemoryReporting.h"
#if defined(HAVE_POSIX_MEMALIGN)
#include "gfxAlphaRecovery.h"
#endif
#include "gfxImageSurface.h"
#include "cairo.h"

View File

@ -9,7 +9,7 @@
#include "mozilla/MemoryReporting.h"
#include "gfxASurface.h"
#include "nsAutoPtr.h"
#include "gfxPoint.h"
#include "nsSize.h"
// ARGB -- raw buffer.. wont be changed.. good for storing data.

View File

@ -14,6 +14,8 @@
#include "gfxPlatformMac.h"
#include "gfxContext.h"
#include "gfxFontUtils.h"
#include "gfxMacPlatformFontList.h"
#include "gfxFontConstants.h"
#include "cairo-quartz.h"

View File

@ -8,10 +8,10 @@
#include "mozilla/MemoryReporting.h"
#include "gfxFont.h"
#include "gfxMacPlatformFontList.h"
#include "mozilla/gfx/2D.h"
#include "cairo.h"
#include <ApplicationServices/ApplicationServices.h>
class MacOSFontEntry;
class gfxMacFont : public gfxFont
{

View File

@ -62,10 +62,12 @@
#include "nsDirectoryServiceDefs.h"
#include "nsISimpleEnumerator.h"
#include "nsCharTraits.h"
#include "gfxFontConstants.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/Preferences.h"
#include "mozilla/Telemetry.h"
#include "mozilla/gfx/2D.h"
#include <unistd.h>
#include <time.h>

View File

@ -9,7 +9,6 @@
#include "gfxPoint.h"
#include "gfxTypes.h"
#include "gfxRect.h"
#include "nsMathUtils.h"
// XX - I don't think this class should use gfxFloat at all,
// but should use 'double' and be called gfxDoubleMatrix;

View File

@ -29,6 +29,7 @@
#include "nsUnicodeScriptCodes.h"
#include "gfxFontconfigUtils.h"
#include "gfxUserFontSet.h"
#include "gfxFontConstants.h"
#include <cairo.h>
#include <cairo-ft.h>

View File

@ -7,6 +7,7 @@
#include "gfxPattern.h"
#include "gfxASurface.h"
#include "gfxPlatform.h"
#include "gfx2DGlue.h"
#include "cairo.h"

View File

@ -8,16 +8,16 @@
#include "gfxTypes.h"
#include "gfxColor.h"
#include "gfxMatrix.h"
#include "nsISupportsImpl.h"
#include "nsAutoPtr.h"
#include "mozilla/Alignment.h"
#include "mozilla/gfx/2D.h"
#include "GraphicsFilter.h"
#include "nsISupportsImpl.h"
#include "nsAutoPtr.h"
class gfxContext;
class gfxASurface;
struct gfxRGBA;
typedef struct _cairo_pattern cairo_pattern_t;

View File

@ -12,7 +12,6 @@
#include "mozilla/layers/ImageBridgeChild.h"
#include "prlog.h"
#include "prenv.h"
#include "gfxPlatform.h"
@ -38,17 +37,15 @@
#include "gfxPlatformFontList.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "gfxUserFontSet.h"
#include "nsUnicodeProperties.h"
#include "harfbuzz/hb.h"
#include "gfxGraphiteShaper.h"
#include "gfx2DGlue.h"
#include "nsUnicodeRange.h"
#include "nsServiceManagerUtils.h"
#include "nsTArray.h"
#include "nsUnicharUtilCIID.h"
#include "nsILocaleService.h"
#include "nsReadableUtils.h"
#include "nsWeakReference.h"
@ -68,12 +65,6 @@
#include "skia/SkGraphics.h"
#endif
#ifdef USE_SKIA_GPU
#include "skia/GrContext.h"
#include "skia/GrGLInterface.h"
#include "GLContextSkia.h"
#endif
#include "mozilla/Preferences.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"

View File

@ -9,18 +9,14 @@
#include "prlog.h"
#include "nsTArray.h"
#include "nsString.h"
#include "nsIObserver.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "gfxTypes.h"
#include "gfxColor.h"
#include "nsRect.h"
#include "qcms.h"
#include "mozilla/gfx/2D.h"
#include "gfx2DGlue.h"
#include "mozilla/RefPtr.h"
#include "GfxInfoCollector.h"
@ -42,11 +38,19 @@ class gfxPlatformFontList;
class gfxTextRun;
class nsIURI;
class nsIAtom;
class nsIObserver;
struct gfxRGBA;
namespace mozilla {
namespace gl {
class GLContext;
}
namespace gfx {
class DrawTarget;
class SourceSurface;
class ScaledFont;
class DrawEventRecorder;
}
}
extern cairo_user_data_key_t kDrawTarget;

View File

@ -20,6 +20,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/Telemetry.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;

View File

@ -9,20 +9,16 @@
#include "gfxQuartzSurface.h"
#include "gfxQuartzImageSurface.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/gfx/QuartzSupport.h"
#include "gfxMacPlatformFontList.h"
#include "gfxMacFont.h"
#include "gfxCoreTextShaper.h"
#include "gfxUserFontSet.h"
#include "nsCRT.h"
#include "nsTArray.h"
#include "nsUnicodeRange.h"
#include "mozilla/Preferences.h"
#include "qcms.h"
#include "gfx2DGlue.h"
#include <dlfcn.h>

View File

@ -6,7 +6,7 @@
#ifndef GFX_PLATFORM_MAC_H
#define GFX_PLATFORM_MAC_H
#include "nsTArray.h"
#include "nsTArrayForwardDeclare.h"
#include "gfxPlatform.h"
#define MAC_OS_X_VERSION_10_6_HEX 0x00001060
@ -14,9 +14,6 @@
#define MAC_OS_X_MAJOR_VERSION_MASK 0xFFFFFFF0U
class gfxTextRun;
class gfxFontFamily;
namespace mozilla { namespace gfx { class DrawTarget; }}
class gfxPlatformMac : public gfxPlatform {

View File

@ -4,8 +4,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxQuartzImageSurface.h"
#include "gfxImageSurface.h"
#include "cairo-quartz.h"
#include "cairo-quartz-image.h"
gfxQuartzImageSurface::gfxQuartzImageSurface(gfxImageSurface *imageSurface)

View File

@ -7,7 +7,9 @@
#define GFX_QUARTZIMAGESURFACE_H
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "nsSize.h"
class gfxImageSurface;
class gfxQuartzImageSurface : public gfxASurface {
public:

View File

@ -3,8 +3,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMathUtils.h"
#include "gfxQuartzNativeDrawing.h"
#include "gfxQuartzSurface.h"
#include "cairo-quartz.h"

View File

@ -11,6 +11,7 @@
#include "gfxContext.h"
#include "gfxQuartzSurface.h"
#include "mozilla/gfx/BorrowedContext.h"
#include "nsAutoPtr.h"
class gfxQuartzNativeDrawing {
public:

View File

@ -5,6 +5,7 @@
#include "gfxQuartzSurface.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "cairo-quartz.h"

View File

@ -7,11 +7,13 @@
#define GFX_QUARTZSURFACE_H
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "nsSize.h"
#include "gfxPoint.h"
#include <Carbon/Carbon.h>
class gfxContext;
class gfxImageSurface;
class gfxQuartzSurface : public gfxASurface {
public:

View File

@ -6,10 +6,8 @@
#ifndef GFX_RECT_H
#define GFX_RECT_H
#include "nsAlgorithm.h"
#include "gfxTypes.h"
#include "gfxPoint.h"
#include "gfxCore.h"
#include "nsDebug.h"
#include "nsRect.h"
#include "mozilla/gfx/BaseMargin.h"

View File

@ -4,6 +4,7 @@
#include "gfxReusableSharedImageSurfaceWrapper.h"
#include "gfxSharedImageSurface.h"
#include "mozilla/layers/ISurfaceAllocator.h"
using mozilla::ipc::Shmem;
using mozilla::layers::ISurfaceAllocator;

View File

@ -6,10 +6,18 @@
#define GFXSHMCOWSURFACEWRAPPER
#include "gfxReusableSurfaceWrapper.h"
#include "mozilla/layers/ISurfaceAllocator.h"
class gfxSharedImageSurface;
namespace mozilla {
namespace ipc {
class Shmem;
}
namespace layers {
class ISurfaceAllocator;
}
}
/**
* A cross-process capable implementation of gfxReusableSurfaceWrapper based
* on gfxSharedImageSurface.

View File

@ -4,12 +4,8 @@
#include "gfxSVGGlyphs.h"
#include "nscore.h"
#include "nsError.h"
#include "nsAutoPtr.h"
#include "nsIParser.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNodeList.h"
#include "nsString.h"
#include "nsIDocument.h"
#include "nsICategoryManager.h"
@ -18,9 +14,6 @@
#include "nsIStreamListener.h"
#include "nsServiceManagerUtils.h"
#include "nsIPresShell.h"
#include "nsQueryFrame.h"
#include "nsIContentSink.h"
#include "nsXMLContentSink.h"
#include "nsNetUtil.h"
#include "nsIInputStream.h"
#include "nsStringStream.h"
@ -33,6 +26,8 @@
#include "nsContentUtils.h"
#include "gfxFont.h"
#include "nsSMILAnimationController.h"
#include "gfxContext.h"
#include "gfxColor.h"
#include "harfbuzz/hb.h"
#define SVG_CONTENT_TYPE NS_LITERAL_CSTRING("image/svg+xml")

View File

@ -7,20 +7,26 @@
#include "gfxFontUtils.h"
#include "nsString.h"
#include "nsIDocument.h"
#include "nsAutoPtr.h"
#include "nsIContentViewer.h"
#include "nsIPresShell.h"
#include "nsClassHashtable.h"
#include "nsBaseHashtable.h"
#include "nsHashKeys.h"
#include "gfxPattern.h"
#include "gfxFont.h"
#include "mozilla/gfx/UserData.h"
#include "nsRefreshDriver.h"
class gfxSVGGlyphs;
#include "DrawMode.h"
class nsIDocument;
class nsIContentViewer;
class nsIPresShell;
class gfxSVGGlyphs;
class gfxTextContextPaint;
namespace mozilla {
namespace dom {
class Element;
}
}
/**
* Wraps an SVG document contained in the SVG table of an OpenType font.

View File

@ -49,8 +49,8 @@
#include "gfxScriptItemizer.h"
#include "nsUnicodeProperties.h"
#include "nsCharTraits.h"
#include "harfbuzz/hb.h"
#define MOD(sp) ((sp) % PAREN_STACK_DEPTH)
#define LIMIT_INC(sp) (((sp) < PAREN_STACK_DEPTH)? (sp) + 1 : PAREN_STACK_DEPTH)

View File

@ -52,7 +52,6 @@
#include <stdint.h>
#include "prtypes.h"
#include "harfbuzz/hb.h"
#include "nsUnicodeScriptCodes.h"
#define PAREN_STACK_DEPTH 32

View File

@ -8,7 +8,6 @@
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "gfxTypes.h"
/*
* gfxSkipChars is a data structure representing a list of characters that

View File

@ -5,6 +5,7 @@
#include "gfxTeeSurface.h"
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "cairo-tee.h"

View File

@ -7,9 +7,11 @@
#define GFX_TEESURFACE_H
#include "gfxASurface.h"
#include "nsTArray.h"
#include "nsTArrayForwardDeclare.h"
#include "nsSize.h"
template<class T> class nsRefPtr;
/**
* Wraps a cairo_tee_surface. The first surface in the surface list is the
* primary surface, which answers all surface queries (including size).

View File

@ -10,14 +10,14 @@
#include "gfxUserFontSet.h"
#include "gfxPlatform.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsNetUtil.h"
#include "nsICacheService.h"
#include "nsIProtocolHandler.h"
#include "nsIPrincipal.h"
#include "gfxFontConstants.h"
#include "mozilla/Services.h"
#include "mozilla/Telemetry.h"
#include "mozilla/gfx/2D.h"
#include "opentype-sanitiser.h"
#include "ots-memory-stream.h"

View File

@ -6,20 +6,15 @@
#ifndef GFX_USER_FONT_SET_H
#define GFX_USER_FONT_SET_H
#include "gfxTypes.h"
#include "gfxFont.h"
#include "gfxFontUtils.h"
#include "nsRefPtrHashtable.h"
#include "nsAutoPtr.h"
#include "nsCOMPtr.h"
#include "nsIURI.h"
#include "nsIFile.h"
#include "nsIPrincipal.h"
#include "nsISupportsImpl.h"
#include "nsIScriptError.h"
#include "nsURIHashKey.h"
class gfxMixedFontFamily;
class nsFontFaceLoader;
//#define DEBUG_USERFONT_CACHE

View File

@ -8,8 +8,6 @@
#include "gfxTypes.h"
#include "GraphicsFilter.h"
#include "gfxImageSurface.h"
#include "mozilla/gfx/2D.h"
#include "imgIContainer.h"
class gfxDrawable;

View File

@ -40,6 +40,7 @@
#include "gfxUserFontSet.h"
#include "nsWindowsHelpers.h"
#include "gfx2DGlue.h"
#include <string>

View File

@ -4,8 +4,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsUnicodeRange.h"
#include "nsIAtom.h"
#include "nsGkAtoms.h"
#include "mozilla/NullPtr.h"
// This table depends on unicode range definitions.
// Each item's index must correspond unicode range value

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nscore.h"
#include <stdint.h>
class nsIAtom;

View File

@ -22,6 +22,7 @@
#endif
#include "nsAutoPtr.h"
#include "imgIContainer.h"
#include "gfxColor.h"
class imgFrame
{

View File

@ -48,6 +48,7 @@
#include "ImageContainer.h"
#include "mozilla/Telemetry.h"
#include "gfxUtils.h"
#include "gfxColor.h"
#include <algorithm>
using namespace mozilla;

View File

@ -62,6 +62,8 @@
#include "nsIImageLoadingContent.h"
#include "nsCSSParser.h"
#include "nsBidiUtils.h"
#include "nsServiceManagerUtils.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -12,6 +12,7 @@
#include "nsStyleContext.h"
#include "nsUnicodeProperties.h"
#include "nsSpecialCasingData.h"
#include "mozilla/gfx/2D.h"
// Unicode characters needing special casing treatment in tr/az languages
#define LATIN_CAPITAL_LETTER_I_WITH_DOT_ABOVE 0x0130

View File

@ -8,6 +8,7 @@
#include "gfxFont.h"
#include "gfxUserFontSet.h"
#include "nsFontFaceLoader.h"
#include "mozilla/gfx/2D.h"
#include "zlib.h"
nsFontFace::nsFontFace(gfxFontEntry* aFontEntry,

View File

@ -7,6 +7,7 @@
#include "nsFontFaceLoader.h"
#include "nsIFrame.h"
#include "gfxFont.h"
#include "mozilla/gfx/2D.h"
nsFontFaceList::nsFontFaceList()
{

View File

@ -14,6 +14,7 @@
#include "nsIInterfaceRequestorUtils.h"
#include "nsTextFragment.h"
#include "nsIDOMEvent.h"
#include "mozilla/gfx/2D.h"
//
// <maction> -- bind actions to a subexpression - implementation

View File

@ -6,6 +6,7 @@
#include "nsMathMLmpaddedFrame.h"
#include "nsMathMLElement.h"
#include "mozilla/gfx/2D.h"
#include <algorithm>
//

View File

@ -5,6 +5,7 @@
#include "nsMathMLmphantomFrame.h"
#include "mozilla/gfx/2D.h"
//
// <mphantom> -- make content invisible but preserve its size

View File

@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMathMLmrowFrame.h"
#include "mozilla/gfx/2D.h"
//
// <mrow> -- horizontally group any number of subexpressions - implementation

View File

@ -5,6 +5,7 @@
#include "nsMathMLmspaceFrame.h"
#include "nsMathMLElement.h"
#include "mozilla/gfx/2D.h"
#include <algorithm>

View File

@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMathMLmsqrtFrame.h"
#include "mozilla/gfx/2D.h"
//
// <msqrt> -- form a radical - implementation

View File

@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMathMLmstyleFrame.h"
#include "mozilla/gfx/2D.h"
//
// <mstyle> -- style change

View File

@ -6,6 +6,7 @@
#include "nsMathMLsemanticsFrame.h"
#include "nsMimeTypes.h"
#include "mozilla/gfx/2D.h"
//
// <semantics> -- associate annotations with a MathML expression

View File

@ -34,6 +34,7 @@
#include "nsStyleSet.h"
#include "nsPrintfCString.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;

View File

@ -14,6 +14,7 @@
#include "nsContentUtils.h"
#include "nsSVGEffects.h"
#include "nsSVGAnimatedTransformList.h"
#include "gfxColor.h"
// XXX Tight coupling with content classes ahead!

View File

@ -22,6 +22,7 @@
#include "nsSVGUtils.h"
#include "nsSVGAnimatedTransformList.h"
#include "SVGContentUtils.h"
#include "gfxColor.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -18,6 +18,7 @@ class nsDisplaySVGText;
class nsRenderingContext;
class nsSVGTextFrame2;
class nsTextFrame;
class gfxFlattenedPath;
typedef nsSVGDisplayContainerFrame nsSVGTextFrame2Base;

View File

@ -53,6 +53,7 @@
#include "nsTextFrame.h"
#include "SVGContentUtils.h"
#include "mozilla/unused.h"
#include "gfx2DGlue.h"
using namespace mozilla;
using namespace mozilla::dom;

View File

@ -8,6 +8,8 @@
#include "nsXULAppAPI.h"
#include "nsLookAndFeel.h"
#include "gfxFont.h"
#include "gfxFontConstants.h"
#include "mozilla/gfx/2D.h"
using namespace mozilla;
using mozilla::dom::ContentChild;

Some files were not shown because too many files have changed in this diff Show More