Name Description Size Coverage
AndroidSystemFontIterator.cpp 1175 0 %
AndroidSystemFontIterator.h 1129 0 %
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 5035 -
CJKCompatSVS.cpp 38151 -
COLRFonts.cpp 92939 76 %
COLRFonts.h 4278 100 %
CoreTextFontList.cpp 69594 -
CoreTextFontList.h 10505 -
D3D11Checks.cpp static 16835 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 48666 58 %
DeviceManagerDx.h 8393 100 %
DisplayConfigWindows.cpp 2785 95 %
DisplayConfigWindows.h 1042 -
DrawMode.h 881 100 %
FontData.h 1048 100 %
FontPaletteCache.cpp 1040 100 %
FontPaletteCache.h 2070 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 57 %
gfxAndroidPlatform.cpp 16297 0 %
gfxAndroidPlatform.h GFX_PLATFORM_ANDROID_H 2237 0 %
gfxASurface.cpp Do we already have a wrapper for this surface? 14007 45 %
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. 5418 7 %
gfxBlur.cpp 46874 68 %
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 18140 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. 22741 96 %
gfxCoreTextShaper.cpp 25785 -
gfxCoreTextShaper.h GFX_CORETEXTSHAPER_H 2370 -
gfxDrawable.cpp 7762 94 %
gfxDrawable.h gfxDrawable An Interface representing something that has an intrinsic size and can draw itself repeatedly. 6085 91 %
gfxDWriteCommon.cpp static 4634 88 %
gfxDWriteCommon.h Used by the FontFileLoader to create a new font stream, this font stream is created from data in memory. The FontData struct is refcounted; the stream will hold a reference to it as long as needed, to guaranteed the data remains alive. @param aData Font data 6974 67 %
gfxDWriteFontList.cpp 93397 56 %
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. 17258 63 %
gfxDWriteFonts.cpp static 30167 74 %
gfxDWriteFonts.h \brief Class representing a font face for a font entry. 3855 80 %
gfxEnv.h GFX_ENV_H 4270 57 %
gfxFailure.h 602 0 %
gfxFcPlatformFontList.cpp String 112961 64 %
gfxFcPlatformFontList.h 15356 54 %
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. 192078 86 %
gfxFont.h 100612 92 %
gfxFontConstants.h font constants shared by both thebes and layout 3008 -
gfxFontEntry.cpp 77306 52 %
gfxFontEntry.h 50879 71 %
gfxFontFeatures.cpp 1657 100 %
gfxFontFeatures.h 2884 100 %
gfxFontInfoLoader.cpp 9432 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 | | | | | +---------+ +-------------+ 21004 91 %
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 2915 80 %
gfxFontSrcURI.h A wrapper for an nsIURI that can be used OMT, which has cached information useful for the gfxUserFontSet. 2016 100 %
gfxFontUtils.cpp 73237 68 %
gfxFontUtils.h Bug 341128 - w32api defines min/max which causes problems with <bitset> 26530 87 %
gfxFontVariations.h 1207 -
gfxFT2FontBase.cpp 33396 86 %
gfxFT2FontBase.h 5722 96 %
gfxFT2FontList.cpp 67086 0 %
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. 10259 0 %
gfxFT2Fonts.cpp gfxFT2Font 7829 0 %
gfxFT2Fonts.h GFX_FT2FONTS_H 2536 0 %
gfxFT2Utils.cpp static 5219 76 %
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 4764 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. 5885 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. 9730 76 %
gfxGradientCache.h 724 -
gfxGraphiteShaper.cpp Creation and destruction; on deletion, release any font tables we're holding 19076 87 %
gfxGraphiteShaper.h GFX_GRAPHITESHAPER_H 2626 100 %
gfxHarfBuzzShaper.cpp Creation and destruction; on deletion, release any font tables we're holding 66715 75 %
gfxHarfBuzzShaper.h 12462 100 %
gfxImageSurface.cpp static 9575 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. 2641 100 %
gfxMacFont.cpp 23067 -
gfxMacFont.h override Measure to add padding for antialiasing 3244 -
gfxMacPlatformFontList.h gfxMacPlatformFontList_H_ 1430 -
gfxMacPlatformFontList.mm gfxSingleFaceMacFontFamily 14045 -
gfxMacUtils.cpp static 974 -
gfxMacUtils.h 592 -
gfxMathTable.cpp 6904 91 %
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 6791 78 %
gfxPattern.cpp 6909 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. 2707 100 %
gfxPlatform.cpp 151021 78 %
gfxPlatform.h 35030 77 %
gfxPlatformFontList.cpp 121129 69 %
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. 45680 70 %
gfxPlatformGtk.cpp Undefine the Status from Xlib since it will conflict with system headers on OSX 33528 44 %
gfxPlatformGtk.h GFX_PLATFORM_GTK_H 2470 80 %
gfxPlatformMac.cpp static 35338 -
gfxPlatformMac.h GFX_PLATFORM_MAC_H 3392 -
gfxPlatformWorker.cpp static 1806 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 1559 100 %
gfxQuartzNativeDrawing.cpp 2821 -
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 3139 -
gfxRect.h GFX_RECT_H 389 -
gfxScriptItemizer.cpp If the stack is now empty, reset the stack pointers to their initial values. 9081 100 %
gfxScriptItemizer.h 5924 100 %
gfxSkipChars.cpp 4611 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 %
gfxSparseBitSet.h 15770 67 %
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) 15826 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 5209 100 %
gfxTextRun.cpp 160003 88 %
gfxTextRun.h Callback for Draw() to use when drawing text with mode DrawMode::GLYPH_PATH. 61892 93 %
gfxTypes.h Currently needs to be 'double' for Cairo compatibility. Could become 'float', perhaps, in some configurations. 4586 100 %
gfxUserFontSet.cpp 55261 90 %
gfxUserFontSet.h 30467 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. 61334 44 %
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. 24536 75 %
gfxWindowsPlatform.cpp 59810 77 %
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. 5857 92 %
gfxWindowsSurface.cpp 3219 15 %
gfxWindowsSurface.h include windows.h for the HWND and HDC definitions that we need. 1326 100 %
gfxXlibSurface.cpp For XESetCloseDisplay 13899 0 %
gfxXlibSurface.h GFX_XLIBSURFACE_H 4009 -
IOSPlatformFontList.h IOSPlatformFontList_H_ 1065 -
IOSPlatformFontList.mm 744 -
LICENSE-NOTICE.txt 1701 -
moz.build 7856 -
nsIFontLoadCompleteCallback.idl 366 -
PrintPromise.h unused 562 -
PrintTarget.cpp static 5885 18 %
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*. 5573 92 %
PrintTargetCG.h CoreGraphics printing target. 1589 -
PrintTargetCG.mm aCairoSurface 10622 -
PrintTargetRecording.cpp static 1356 90 %
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. 1207 100 %
PrintTargetSkPDF.cpp do nothing for free 10707 58 %
PrintTargetSkPDF.h Skia PDF printing target. 1649 100 %
PrintTargetWindows.cpp not using cairo_surface_t 9207 22 %
PrintTargetWindows.h include windows.h for the HDC definitions that we need. 2175 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. 15559 93 %
SharedFontList.cpp 50722 81 %
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. 15027 99 %
SkMemoryReporter.cpp 783 100 %
SkMemoryReporter.h GFX_SKMEMORYREPORTER_H 698 -
SoftwareVsyncSource.cpp 4270 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 11814 100 %
ThebesRLBox.h 1074 100 %
ThebesRLBoxTypes.h 438 -
VsyncSource.cpp 4597 81 %
VsyncSource.h GFX_VSYNCSOURCE_H 3864 80 %
XlibDisplay.cpp static 975 0 %
XlibDisplay.h 1116 0 %