Name Description Size Coverage
AndroidSystemFontIterator.cpp 1175 -
AndroidSystemFontIterator.h 1129 -
cairo-xlib-utils.h This callback encapsulates Xlib-based rendering. We assume that the execution of the callback is equivalent to compositing some RGBA image of size (bounds_width, bounds_height) onto the drawable at offset (offset_x, offset_y), clipped to the union of the clip_rects if num_rects is greater than zero. This includes the assumption that the same RGBA image is composited if you call the callback multiple times with the same closure, display and visual during a single cairo_draw_with_xlib call. @return True on success, False on non-recoverable error 5034 -
CJKCompatSVS.cpp 38151 -
COLRFonts.cpp 92041 75 %
COLRFonts.h 4286 100 %
CoreTextFontList.cpp 67533 -
CoreTextFontList.h 10590 -
D3D11Checks.cpp static 16872 72 %
D3D11Checks.h 1496 -
d3dkmtQueryStatistics.h This file is based on a header file that was briefly seen in the Windows 8 RC SDK. The work for this file itself was based on the one in ProcessHacker at http://processhacker.svn.sourceforge.net/viewvc/processhacker/2.x/trunk/plugins/ExtendedTools/d3dkmt.h?revision=4758&view=markup For more details see Mozilla Bug 689870. [Bug 917496 indicates that some of these structs may not match reality, and therefore should not be trusted. See the reference to bug 917496 in gfxWindowsPlatform.cpp.] 3789 -
DeviceManagerDx.cpp static 44221 67 %
DeviceManagerDx.h 7837 100 %
DisplayConfigWindows.cpp 2785 95 %
DisplayConfigWindows.h 980 -
DrawMode.h 881 100 %
FontPaletteCache.cpp 1039 100 %
FontPaletteCache.h 2004 100 %
gencjkcisvs.py // Generated by %s. Do not edit. #include <stdint.h> #define U16(v) (((v) >> 8) & 0xFF), ((v) & 0xFF) #define U24(v) (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), ((v) & 0xFF) #define U32(v) (((v) >> 24) & 0xFF), (((v) >> 16) & 0xFF), (((v) >> 8) & 0xFF), ((v) & 0xFF) #define GLYPH(v) U16(v >= 0x2F800 ? (v) - (0x2F800 - 0xFB00) : (v)) // Fallback mappings for CJK Compatibility Ideographs Standardized Variants // taken from %s. // Using OpenType format 14 cmap subtable structure to reuse the lookup code // for fonts. The glyphID field is used to store the corresponding codepoints // CJK Compatibility Ideographs. To fit codepoints into the 16-bit glyphID // field, CJK Compatibility Ideographs Supplement (U+2F800..U+2FA1F) will be // mapped to 0xFB00..0xFD1F. extern const uint8_t sCJKCompatSVSTable[] = { 2740 -
genLanguageTagList.pl 2222 -
gfx2DGlue.h 3352 54 %
gfxAlphaRecovery.cpp static 1864 0 %
gfxAlphaRecovery.h Some SIMD fast-paths only can be taken if the relative byte-alignment of images' pointers and strides meets certain criteria. Aligning image pointers and strides by |GoodAlignmentLog2()| below will ensure that fast-paths aren't skipped because of misalignment. Fast-paths may still be taken even if GoodAlignmentLog2() is not met, in some conditions. 3852 11 %
gfxAlphaRecoveryGeneric.h 4787 0 %
gfxAlphaRecoveryNeon.cpp 377 -
gfxAlphaRecoverySSE2.cpp 377 -
gfxAndroidPlatform.cpp 14090 -
gfxAndroidPlatform.h GFX_PLATFORM_ANDROID_H 2186 -
gfxASurface.cpp Do we already have a wrapper for this surface? 14201 52 %
gfxASurface.h A surface is something you can draw on. Instantiate a subclass of this abstract class, and use gfxContext to draw on this surface. 5420 7 %
gfxBaseSharedMemorySurface.cpp 309 -
gfxBaseSharedMemorySurface.h Return a new gfxSharedImageSurface around a shmem segment newly allocated by this function. |aAllocator| is the object used to allocate the new shmem segment. Null is returned if creating the surface failed. NB: the *caller* is responsible for freeing the Shmem allocated by this function. 5387 -
gfxBlur.cpp 46873 59 %
gfxBlur.h Implementation of a Gaussian blur. A Gaussian blur is good for blurring because, when done independently in the horizontal and vertical directions, it matches the result that would be obtained using a different (rotated) set of axes. Creates an 8-bit alpha channel context for callers to draw in, spreads the contents of that context, blurs the contents, and applies it as an alpha mask on a different existing context. A spread N makes each output pixel the maximum value of all source pixels within a square of side length 2N+1 centered on the output pixel. A temporary surface is created in the Init function. The caller then draws any desired content onto the context acquired through GetContext, and lastly calls Paint to apply the blurred content as an alpha mask. 7638 100 %
gfxColor.h Fast approximate division by 255. It has the property that for all 0 <= n <= 255*255, GFX_DIVIDE_BY_255(n) == n/255. But it only uses two adds and two shifts instead of an integer division (which is expensive on many processors). equivalent to ((v)/255) 2074 100 %
gfxContext.cpp static 18141 76 %
gfxContext.h This class lives on the stack and allows gfxContext users to easily, and performantly get a gfx::Pattern to use for drawing in their current context. 22742 96 %
gfxCoreTextShaper.cpp 25871 -
gfxCoreTextShaper.h GFX_CORETEXTSHAPER_H 2412 -
gfxDrawable.cpp 7819 91 %
gfxDrawable.h gfxDrawable An Interface representing something that has an intrinsic size and can draw itself repeatedly. 6085 100 %
gfxDWriteCommon.cpp static 4660 84 %
gfxDWriteCommon.h Used by the FontFileLoader to create a new font stream, this font stream is created from data in memory. The memory passed may be released after object creation, it will be copied internally. @param aData Font data 7311 67 %
gfxDWriteFontList.cpp 92659 54 %
gfxDWriteFontList.h \brief Class representing directwrite font family. gfxDWriteFontFamily is a class that describes one of the font families on the user's system. It holds each gfxDWriteFontEntry (maps more directly to a font face) which holds font type, charset info and character map info. 17250 66 %
gfxDWriteFonts.cpp static 30354 73 %
gfxDWriteFonts.h \brief Class representing a font face for a font entry. 3907 83 %
gfxEnv.h GFX_ENV_H 4270 57 %
gfxFailure.h 602 0 %
gfxFcPlatformFontList.cpp String 108278 66 %
gfxFcPlatformFontList.h 15266 56 %
gfxFont.cpp gfxFontCache - global cache of gfxFont instances. Expires unused fonts after a short interval; notifies fonts to age their cached shaped-word records; observes memory-pressure notification and tells fonts to clear their shaped-word caches to free up memory. 185084 86 %
gfxFont.h 96060 92 %
gfxFontConstants.h font constants shared by both thebes and layout 4288 -
gfxFontEntry.cpp 77550 53 %
gfxFontEntry.h 49019 70 %
gfxFontFeatures.cpp 1656 100 %
gfxFontFeatures.h 2770 100 %
gfxFontInfoLoader.cpp 9431 84 %
gfxFontInfoLoader.h 6345 49 %
gfxFontMissingGlyphs.cpp Parameters that control the rendering of hexboxes. They look like this: BMP codepoints non-BMP codepoints (U+0000 - U+FFFF) (U+10000 - U+10FFFF) +---------+ +-------------+ | | | | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | | | | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | HHH HHH | | HHH HHH HHH | | | | | +---------+ +-------------+ 20974 96 %
gfxFontMissingGlyphs.h This class should not be instantiated. It's just a container for some helper functions. 1676 -
gfxFontPrefLangList.inc 1649 -
gfxFontSrcPrincipal.cpp 937 100 %
gfxFontSrcPrincipal.h A wrapper for an nsIPrincipal that can be used OMT, which has cached information useful for the gfxUserFontSet. TODO(emilio): This has grown a bit more complex, but nsIPrincipal is now thread-safe, re-evaluate the existence of this class. 1481 100 %
gfxFontSrcURI.cpp 2937 65 %
gfxFontSrcURI.h A wrapper for an nsIURI that can be used OMT, which has cached information useful for the gfxUserFontSet. 2016 100 %
gfxFontUtils.cpp 64236 64 %
gfxFontUtils.h Bug 341128 - w32api defines min/max which causes problems with <bitset> 50040 88 %
gfxFontVariations.h 1127 -
gfxFT2FontBase.cpp 32930 87 %
gfxFT2FontBase.h 5447 96 %
gfxFT2FontList.cpp 67294 -
gfxFT2FontList.h Append this face's metadata to aFaceList for storage in the FontNameCache (for faster startup). The aPSName and aFullName parameters here can in principle be empty, but if they are missing for a given face then src:local() lookups will not be able to find it when the shared font list is in use. 9857 -
gfxFT2Fonts.cpp gfxFT2Font 7973 -
gfxFT2Fonts.h GFX_FT2FONTS_H 2578 -
gfxFT2Utils.cpp static 5226 51 %
gfxFT2Utils.h BEWARE: Recursively locking with gfxFT2LockedFace is not supported. Do not instantiate gfxFT2LockedFace within the scope of another instance. Do not attempt to call into Cairo within the scope of gfxFT2LockedFace, as that may accidentally try to re-lock the face within Cairo itself and thus deadlock. 2443 100 %
gfxGlyphExtents.cpp 4763 96 %
gfxGlyphExtents.h This stores glyph bounds information for a particular gfxFont, at a particular appunits-per-dev-pixel ratio (because the compressed glyph width array is stored in appunits). We store a hashtable from glyph IDs to float bounding rects. For the common case where the glyph has no horizontal left bearing, and no y overflow above the font ascent or below the font descent, and tight bounding boxes are not required, we avoid storing the glyph ID in the hashtable and instead consult an array of 16-bit glyph XMost values (in appunits). This array always has an entry for the font's space glyph --- the width is assumed to be zero. 5917 100 %
gfxGradientCache.cpp This class is what is cached. It need to be allocated in an object separated to the cache entry to be able to be tracked by the nsExpirationTracker. 10550 77 %
gfxGradientCache.h 724 -
gfxGraphiteShaper.cpp Creation and destruction; on deletion, release any font tables we're holding 18535 87 %
gfxGraphiteShaper.h GFX_GRAPHITESHAPER_H 2698 100 %
gfxHarfBuzzShaper.cpp Creation and destruction; on deletion, release any font tables we're holding 67099 75 %
gfxHarfBuzzShaper.h For HarfBuzz font callback functions, font_data is a ptr to a FontCallbackData struct 9168 100 %
gfxImageSurface.cpp static 9762 28 %
gfxImageSurface.h A raw image buffer. The format can be set in the constructor. Its main purpose is for storing read-only images and using it as a source surface, but it can also be drawn to. 5933 82 %
gfxLanguageTagList.cpp Derived from the IANA language subtag registry by genLanguageTagList.pl. Created on Mon Nov 7 14:52:44 2011. * * * * This file contains MACHINE-GENERATED DATA, do not edit! * * * * * 442244 -
gfxLineSegment.h Determines if two line segments intersect, and returns the intersection point in aIntersection if they do. Coincident lines are considered not intersecting as they don't have an intersection point. 2633 100 %
gfxMacFont.cpp 21936 -
gfxMacFont.h override Measure to add padding for antialiasing 3220 -
gfxMacPlatformFontList.h gfxMacPlatformFontList_H_ 1430 -
gfxMacPlatformFontList.mm gfxSingleFaceMacFontFamily 14051 -
gfxMacUtils.cpp static 973 -
gfxMacUtils.h 591 -
gfxMathTable.cpp 6987 89 %
gfxMathTable.h Used by |gfxFont| to represent the MATH table of an OpenType font. Each |gfxFont| owns at most one |gfxMathTable| instance. 4948 100 %
gfxMatrix.h GFX_MATRIX_H 358 -
gfxOTSUtils.h 6615 78 %
gfxPattern.cpp 6799 72 %
gfxPattern.h Get an Azure Pattern for the current Cairo pattern. aPattern transform specifies the transform that was set on the DrawTarget when the pattern was set. When this is nullptr it is assumed the transform is identical to the current transform. 2708 100 %
gfxPlatform.cpp 150681 78 %
gfxPlatform.h 35590 77 %
gfxPlatformFontList.cpp 120843 68 %
gfxPlatformFontList.h A helper class used to create a SharedBitSet instance in a FontList's shared memory, while ensuring that we avoid bloating memory by avoiding creating duplicate instances. 44125 69 %
gfxPlatformGtk.cpp Undefine the Status from Xlib since it will conflict with system headers on OSX 33139 50 %
gfxPlatformGtk.h GFX_PLATFORM_GTK_H 2470 80 %
gfxPlatformMac.cpp static 34967 -
gfxPlatformMac.h GFX_PLATFORM_MAC_H 3193 -
gfxPlatformWorker.cpp static 1805 86 %
gfxPlatformWorker.h Threadlocal instance of gfxPlatform data that may be used/shared on a DOM worker thread. 1081 -
gfxPoint.h GFX_POINT_H 391 -
gfxQuad.h GFX_QUAD_H 1558 100 %
gfxQuartzNativeDrawing.cpp 2820 -
gfxQuartzNativeDrawing.h Create native Quartz drawing for a rectangle bounded by nativeRect. Typical usage looks like: gfxQuartzNativeDrawing nativeDraw(ctx, nativeRect); CGContextRef cgContext = nativeDraw.BeginNativeDrawing(); if (!cgContext) return NS_ERROR_FAILURE; ... call Quartz operations on CGContextRef to draw to nativeRect ... nativeDraw.EndNativeDrawing(); aNativeRect is the size of the surface (in Quartz/Cocoa points) that will be created _if_ the gfxQuartzNativeDrawing decides to create a new surface and CGContext for its drawing operations, which it then composites into the target DrawTarget. (Note that aNativeRect will be ignored if the gfxQuartzNativeDrawing uses the target DrawTarget directly.) The optional aBackingScale parameter is a scaling factor that will be applied when creating and rendering into such a temporary surface. 2330 -
gfxQuartzSurface.cpp 2768 -
gfxQuartzSurface.h GFX_QUARTZSURFACE_H 1114 -
gfxQuaternion.h GFX_QUATERNION_H 3138 -
gfxRect.h GFX_RECT_H 389 -
gfxScriptItemizer.cpp If the stack is now empty, reset the stack pointers to their initial values. 8396 100 %
gfxScriptItemizer.h GFX_SCRIPTITEMIZER_H 3690 100 %
gfxSharedImageSurface.h GFX_SHARED_IMAGESURFACE_H 966 -
gfxSkipChars.cpp 4610 93 %
gfxSkipChars.h gfxSkipChars is a data structure representing a list of characters that have been skipped. The initial string is called the "original string" and after skipping some characters, the result is called the "skipped string". gfxSkipChars provides efficient ways to translate between offsets in the original string and the skipped string. It is used by textrun code to keep track of offsets before and after text transformations such as whitespace compression and control code deletion. 8833 100 %
gfxSVGGlyphs.cpp Comparison operator for finding a range containing a given glyph ID. Simply checks whether |key| is less (greater) than every element of |range|, in which case return |key| < |range| (|key| > |range|). Otherwise |key| is in |range|, in which case return equality. The total ordering here is guaranteed by (1) the index ranges being disjoint; and (2) the (sole) key always being a singleton, so intersection => containment (note that this is wrong if we have more than one intersection or two sets intersecting of size > 1 -- so... don't do that) 15306 88 %
gfxSVGGlyphs.h Wraps an SVG document contained in the SVG table of an OpenType font. There may be multiple SVG documents in an SVG table which we lazily parse so we have an instance of this class for every document in the SVG table which contains a glyph ID which has been used Finds and looks up elements contained in the SVG document which have glyph mappings to be drawn by gfxSVGGlyphs 7619 97 %
gfxTextRun.cpp 153311 88 %
gfxTextRun.h Callback for Draw() to use when drawing text with mode DrawMode::GLYPH_PATH. 61248 93 %
gfxTypes.h Currently needs to be 'double' for Cairo compatibility. Could become 'float', perhaps, in some configurations. 4732 100 %
gfxUserFontSet.cpp 52905 86 %
gfxUserFontSet.h 30175 88 %
gfxUtils.cpp Dump a raw image to the default log. This function is exported from libxul, so it can be called from any library in addition to (of course) from a debugger. Note: this helper currently assumes that all 2-bytepp images are r5g6b5, and that all 4-bytepp images are r8g8b8a8. 61000 47 %
gfxUtils.h Premultiply or Unpremultiply aSourceSurface, writing the result to aDestSurface or back into aSourceSurface if aDestSurface is null. If aDestSurface is given, it must have identical format, dimensions, and stride as the source. If the source is not SurfaceFormat::A8R8G8B8_UINT32, no operation is performed. If aDestSurface is given, the data is copied over. 24466 75 %
gfxWindowsNativeDrawing.cpp 10583 0 %
gfxWindowsNativeDrawing.h Flags for notifying this class what kind of operations the native drawing supports 3250 -
gfxWindowsPlatform.cpp 59481 79 %
gfxWindowsPlatform.h Utility to get a Windows HDC from a Moz2D DrawTarget. If the DrawTarget is not backed by a HDC this will get the HDC for the screen device context instead. 5858 92 %
gfxWindowsSurface.cpp 3220 22 %
gfxWindowsSurface.h include windows.h for the HWND and HDC definitions that we need. 1326 100 %
gfxXlibSurface.cpp For XESetCloseDisplay 13923 0 %
gfxXlibSurface.h GFX_XLIBSURFACE_H 4011 -
IOSPlatformFontList.h IOSPlatformFontList_H_ 1065 -
IOSPlatformFontList.mm 744 -
moz.build 7490 -
nsIFontLoadCompleteCallback.idl 366 -
PrintPromise.h unused 562 -
PrintTarget.cpp static 5885 66 %
PrintTarget.h A class that is used to draw output that is to be sent to a printer or print preview. This class wraps a cairo_surface_t* and provides access to it via a DrawTarget. The various checkpointing methods manage the state of the platform specific cairo_surface_t*. 5718 75 %
PrintTargetCG.h CoreGraphics printing target. 1538 -
PrintTargetCG.mm aCairoSurface 10556 -
PrintTargetPDF.cpp static 4065 90 %
PrintTargetPDF.h PDF printing target. 1049 100 %
PrintTargetRecording.cpp static 3875 -
PrintTargetRecording.h Recording printing target. This exists for use on e10s's content process in order to record print output, send it over to the parent process, and replay it on a DrawTarget there for printing. 1164 -
PrintTargetSkPDF.cpp do nothing for free 9617 0 %
PrintTargetSkPDF.h Skia PDF printing target. 2234 0 %
PrintTargetThebes.cpp static 2731 90 %
PrintTargetThebes.h XXX Remove this class. This class should go away once all the logic from the gfxASurface subclasses has been moved to new PrintTarget subclasses and we no longer need to wrap a gfxASurface. When removing this class, be sure to make PrintTarget::MakeDrawTarget non-virtual! 1631 100 %
PrintTargetWindows.cpp static 6057 20 %
PrintTargetWindows.h include windows.h for the HDC definitions that we need. 1175 100 %
SharedFontList-impl.h Data used to initialize a font family alias (a "virtual" family that refers to some or all of the faces of another family, used when alternate family names are found in the font resource for localization or for styled subfamilies). AliasData records are collected incrementally while scanning the fonts, and then used to set up the Aliases list in the shared font list. 15560 93 %
SharedFontList.cpp 50056 82 %
SharedFontList.h A Pointer in the shared font list contains a packed index/offset pair, with a 12-bit index into the array of shared-memory blocks, and a 20-bit offset into the block. The maximum size of each block is therefore 2^20 bytes (1 MB) if sub-parts of the block are to be allocated; however, a larger block (up to 2^32 bytes) can be created and used as a single allocation if necessary. 15015 99 %
SkMemoryReporter.cpp 783 100 %
SkMemoryReporter.h GFX_SKMEMORYREPORTER_H 698 -
SoftwareVsyncSource.cpp 4269 94 %
SoftwareVsyncSource.h GFX_SOFTWARE_VSYNC_SOURCE_H 1721 100 %
StandardFonts-android.inc 5763 -
StandardFonts-linux.inc 24936 -
StandardFonts-macos.inc 6951 -
StandardFonts-win10.inc 11785 100 %
ThebesRLBox.h 1075 100 %
ThebesRLBoxTypes.h 438 -
VsyncSource.cpp 4596 81 %
VsyncSource.h GFX_VSYNCSOURCE_H 3864 80 %
XlibDisplay.cpp static 975 0 %
XlibDisplay.h 1115 0 %