Name Description Size Coverage
AnimatedPropertyIDSet.h 7231 94 %
AnimationCollection.cpp static 2666 -
AnimationCollection.h 2169 100 %
AnimationCommon.h Notify the manager that the pres context is going away. 10535 95 %
AttributeStyles.cpp Data from presentational HTML attributes and style attributes 3454 -
AttributeStyles.h style sheet and style rule processor representing data from presentational HTML attributes 2574 100 %
BindgenUniquePtr.h 856 -
BuiltinCounterStyleList.inc a list of all builtin counter styles 1775 -
BuiltInStyleSheetList.inc list of user agent style sheets that GlobalStyleSheetCache manages 1482 90 %
BuiltInStyleSheets.h an identifier for User Agent style sheets 946 100 %
CachedInheritingStyles.cpp 4534 -
CachedInheritingStyles.h 3548 100 %
ComputedStyle.cpp the interface (to internal code) for retrieving computed style data 20752 -
ComputedStyle.h the interface (to internal code) for retrieving computed style data 14729 99 %
ComputedStyleInlines.h Inlined methods for ComputedStyle. Will just redirect to GeckoComputedStyle methods when compiled without stylo, but will do virtual dispatch (by checking which kind of container it is) in stylo mode. 5368 100 %
contenteditable.css contenteditable.css is empty, see bug 1941134 258 -
CounterStyleManager.cpp 61886 -
CounterStyleManager.h This method returns whether an ordinal is in the range of this counter style. Note that, it is possible that an ordinal in range is rejected by the generating algorithm. 6797 73 %
crashtests -
CSS.cpp DOM object holding utility CSS functions 16967 -
CSS.h DOM object holding utility CSS functions 9833 -
CSSAppearanceBaseRule.cpp 1418 -
CSSAppearanceBaseRule.h 1595 36 %
CSSContainerRule.cpp virtual 4058 -
CSSContainerRule.h 1830 100 %
CSSCounterStyleRule.cpp virtual 2703 -
CSSCounterStyleRule.h 1855 100 %
CSSCustomMediaRule.cpp virtual 3744 -
CSSCustomMediaRule.h 1572 67 %
CSSEnabledState.h enum for whether a CSS feature (property, pseudo-class, etc.) is enabled in a specific context 1171 100 %
CSSFontFaceRule.cpp 7355 -
CSSFontFaceRule.h 3448 100 %
CSSFontFeatureValuesRule.cpp CSSRule implementation 2395 -
CSSFontFeatureValuesRule.h 1800 100 %
CSSFontPaletteValuesRule.cpp CSSRule implementation 2260 -
CSSFontPaletteValuesRule.h 1697 80 %
CSSImportRule.cpp virtual 4713 -
CSSImportRule.h 1753 100 %
CSSKeyframeRule.cpp virtual 6186 -
CSSKeyframeRule.h 1715 100 %
CSSKeyframesRule.cpp 9966 -
CSSKeyframesRule.h 2030 100 %
CSSLayerBlockRule.cpp 2128 -
CSSLayerBlockRule.h 1351 100 %
CSSLayerStatementRule.cpp 2219 -
CSSLayerStatementRule.h 1417 100 %
CSSMarginRule.cpp nsDOMCSSDeclaration implementation 5963 -
CSSMarginRule.h 3178 0 %
CSSMediaRule.cpp virtual 3326 -
CSSMediaRule.h 1599 100 %
CSSMozDocumentRule.cpp virtual 4865 -
CSSMozDocumentRule.h 1652 100 %
CSSNamespaceRule.cpp 1342 -
CSSNamespaceRule.h 1830 92 %
CSSNestedDeclarations.cpp 6093 -
CSSNestedDeclarations.h 3721 91 %
CSSPageRule.cpp nsDOMCSSDeclaration implementation 6696 -
CSSPageRule.h 3555 90 %
CSSPositionTryRule.cpp 6646 -
CSSPositionTryRule.h 3216 80 %
CSSPropertyId.h 3801 92 %
CSSPropertyRule.cpp virtual 2004 -
CSSPropertyRule.h 1603 100 %
CSSPropFlags.h 2386 100 %
CSSRuleList.cpp virtual 865 -
CSSRuleList.h mozilla_dom_CSSRuleList_h 1039 100 %
CSSScopeRule.cpp 2052 -
CSSScopeRule.h 1290 100 %
CSSStartingStyleRule.cpp 1455 -
CSSStartingStyleRule.h 1582 45 %
CSSStyleRule.cpp nsDOMCSSDeclaration implementation 14289 -
CSSStyleRule.h 4519 90 %
CSSSupportsRule.cpp virtual 2337 -
CSSSupportsRule.h 1394 100 %
CSSValue.h DOM object representing values in DOM computed style 1193 100 %
CSSViewTransitionRule.cpp 1654 -
CSSViewTransitionRule.h 1598 55 %
DeclarationBlock.cpp 911 -
DeclarationBlock.h representation of a declaration block in a CSS stylesheet, or of a style attribute 8298 94 %
designmode.css designmode.css is empty, see bug 1941134 253 -
DocumentMatchingFunction.h Enum defining the type of matching function for a @-moz-document rule condition. 676 -
DocumentStyleRootIterator.cpp 1204 -
DocumentStyleRootIterator.h DocumentStyleRootIterator traverses the roots of the document from the perspective of the Servo-backed style system. In the general case, this will first traverse the document root, followed by any document level native anonymous content. If the caller passes an element to the constructor rather than the document, that element (and nothing else) is returned from GetNextStyleRoot. 1150 100 %
ErrorReporter.cpp diagnostic reporting for CSS style sheet parser 6849 -
ErrorReporter.h diagnostic reporting for CSS style sheet parser 1899 100 %
FontFace.cpp 9282 -
FontFace.h Returns and takes ownership of the buffer storing the font data. 4341 75 %
FontFaceImpl.cpp An object that wraps a FontFace object and exposes its ArrayBuffer or ArrayBufferView data in a form the user font set can consume. 27658 -
FontFaceImpl.h Returns whether this object is in the specified FontFaceSet. 10368 100 %
FontFaceSet.cpp static 14984 -
FontFaceSet.h Notification method called by the nsPresContext to indicate that the refresh driver ticked and flushed style and layout. were just flushed. 5525 100 %
FontFaceSetDocumentImpl.cpp 25842 -
FontFaceSetDocumentImpl.h Notification method called by the nsPresContext to indicate that the refresh driver ticked and flushed style and layout. were just flushed. 3763 100 %
FontFaceSetImpl.cpp 30009 -
FontFaceSetImpl.h Finds an existing entry in the user font cache or creates a new user font entry for the given FontFace object. 10832 52 %
FontFaceSetIterator.cpp 2185 -
FontFaceSetIterator.h 1157 100 %
FontFaceSetWorkerImpl.cpp 11982 -
FontFaceSetWorkerImpl.h 1877 100 %
FontLoaderUtils.cpp static 7289 -
FontLoaderUtils.h 2526 -
FontPreloader.cpp 1101 -
FontPreloader.h 887 -
GeckoBindings.cpp FFI functions for Servo to call into Gecko 76322 -
GeckoBindings.h FFI functions for Servo to call into Gecko 28697 -
GenerateCSSProperties.py /* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ 22913 -
GeneratePseudoStyleTypeList.py /* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT */ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #ifndef CSS_PSEUDO_STYLE_TYPE #define CSS_PSEUDO_STYLE_TYPE(name, flags) /* nothing */ #define DEFINED_CSS_PSEUDO_STYLE_TYPE #endif #ifndef CSS_NON_INHERITING_ANON_BOX #define CSS_NON_INHERITING_ANON_BOX(name, flags) CSS_PSEUDO_STYLE_TYPE(name, flags) #define DEFINED_CSS_NON_INHERITING_ANON_BOX #endif #ifndef CSS_INHERITING_ANON_BOX #define CSS_INHERITING_ANON_BOX(name, flags) CSS_PSEUDO_STYLE_TYPE(name, flags) #define DEFINED_CSS_INHERITING_ANON_BOX #endif #ifndef CSS_PSEUDO_ELEMENT #define CSS_PSEUDO_ELEMENT(name, flags) CSS_PSEUDO_STYLE_TYPE(name, flags) #define DEFINED_CSS_PSEUDO_ELEMENT #endif 2444 -
GlobalStyleSheetCache.cpp 22067 -
GlobalStyleSheetCache.h 4622 100 %
GroupRule.cpp internal interface representing CSS style rules that contain other rules, such as @media rules 3705 -
GroupRule.h internal interface representing CSS style rules that contain other rules, such as @media rules 2548 50 %
ImageDocument.css This CSS stylesheet defines the rules to be applied to any ImageDocuments, including those in frames. 832 -
ImageLoader.cpp A class that handles style system image loads (other image loads are handled by the nodes in the content tree). 27244 -
ImageLoader.h NOTE: All methods must be called from the main thread unless otherwise specified. 5388 100 %
ImportScanner.cpp 6529 -
ImportScanner.h A simple best-effort scanner for @import rules for the HTML parser 3166 100 %
jar.mn 2191 -
LayerAnimationInfo.cpp static 1455 -
LayerAnimationInfo.h !defined(mozilla_LayerAnimationInfo_h) 3363 75 %
Loader.cpp loading of CSS style sheets using the network APIs 86160 -
Loader.h loading of CSS style sheets using the network APIs 26145 100 %
MappedDeclarationsBuilder.cpp 1833 -
MappedDeclarationsBuilder.h Representation of a declaration block used for attribute mapping 7078 100 %
MediaFeatureChange.h A struct defining a media feature change. 3062 100 %
MediaList.cpp base class for representation of media lists 5236 -
MediaList.h base class for representation of media lists 2910 79 %
MediaQueryList.cpp implements DOM interface for querying and observing media queries 4603 -
MediaQueryList.h implements DOM interface for querying and observing media queries 3433 100 %
moz.build 9625 -
NonCustomCSSPropertyId.h.in 2532 -
nsAnimationManager.cpp 19110 -
nsAnimationManager.h namespace mozilla 3627 100 %
nsChangeHint.h constants for what needs to be recomputed in response to style changes 21140 22 %
nsComputedDOMStyle.cpp DOM object returned from element.getComputedStyle() 86463 -
nsComputedDOMStyle.h DOM object returned from element.getComputedStyle() 14982 100 %
nsCSSPropertyIDSet.h bit vectors for sets of CSS properties 9443 100 %
nsCSSProps.cpp methods for dealing with CSS properties and tables of the keyword values they accept 7336 -
nsCSSProps.h methods for dealing with CSS properties and tables of the keyword values they accept 9479 91 %
nsCSSValue.cpp representation of simple property values within CSS declarations 3044 -
nsCSSValue.h representation of simple property values within CSS declarations 4391 100 %
nsCSSVisitedDependentPropList.h a list of style struct's member variables which can be visited-dependent 1529 -
nsDOMCSSAttrDeclaration.cpp DOM object for element.style 10223 -
nsDOMCSSAttrDeclaration.h DOM object for element.style 3611 100 %
nsDOMCSSDeclaration.cpp base class for DOM objects for element.style and cssStyleRule.style 14028 -
nsDOMCSSDeclaration.h base class for DOM objects for element.style and cssStyleRule.style 8296 56 %
nsDOMCSSValueList.cpp DOM object representing lists of values in DOM computed style 1640 -
nsDOMCSSValueList.h DOM object representing lists of values in DOM computed style 1043 -
nsFontFaceLoader.cpp code for loading in @font-face defined font data 12785 -
nsFontFaceLoader.h code for loading in @font-face defined font data 2250 -
nsFontFaceUtils.cpp static 8110 -
nsFontFaceUtils.h helper utilities for working with downloadable fonts 626 -
nsICSSDeclaration.cpp Implementation of non-inline bits of nsICSSDeclaration. 683 -
nsICSSDeclaration.h interface for accessing style declarations using enums instead of strings, for internal use 4937 63 %
nsICSSLoaderObserver.h internal interface for observing CSS style sheet loads 1556 -
nsIPreloadedStyleSheet.idl The nsIPreloadedStyleSheet interface is an opaque interface for style sheets returned by nsIStyleSheetService.preloadSheet, and which can be passed to nsIDOMWindowUtils.addSheet. 553 -
nsIStyleSheetService.idl interface for managing user and user-agent style sheets 2541 -
nsMediaFeatures.cpp the features that media queries can test 15413 -
nsROCSSPrimitiveValue.cpp DOM object representing values in DOM computed style 3812 -
nsROCSSPrimitiveValue.h DOM object representing values in DOM computed style 1864 -
nsStyleAutoArray.h An array of objects, similar to AutoTArray<T,1> but which is memmovable. It always has length >= 1. 2371 100 %
nsStyleChangeList.cpp a list of the recomputation that needs to be done in response to a style change 2916 -
nsStyleChangeList.h a list of the recomputation that needs to be done in response to a style change 1431 0 %
nsStyleConsts.h constants used in the style struct data provided by ComputedStyle 10359 -
nsStyleSheetService.cpp implementation of interface for managing user and user-agent style sheets 10020 -
nsStyleSheetService.h implementation of interface for managing user and user-agent style sheets 2154 100 %
nsStyleStruct.cpp structs that contain the data provided by ComputedStyle, the internal API for computed style data for an element 147333 -
nsStyleStruct.h structs that contain the data provided by ComputedStyle, the internal API for computed style data for an element 89071 96 %
nsStyleStructFwd.h Forward declarations to avoid including all of nsStyleStruct.h. 1903 100 %
nsStyleStructInlines.h Inline methods that belong in nsStyleStruct.h, except that they require more headers. 5335 99 %
nsStyleStructList.h list of structs that contain the data provided by ComputedStyle, the internal API for computed style data for an element 1560 -
nsStyleTransformMatrix.cpp A class used for intermediate representations of the transform and transform-like properties. 24542 -
nsStyleTransformMatrix.h A class representing three matrices that can be used for style transforms. 6642 100 %
nsStyleUtil.cpp static 12554 -
nsStyleUtil.h Convert an author-provided floating point number to an integer (0 ... 255) appropriate for use in the alpha component of a color. 6697 100 %
nsTransitionManager.cpp Code to start and animate CSS transitions. 21752 -
nsTransitionManager.h Code to start and animate CSS transitions. 3571 75 %
PaintWorkletGlobalScope.cpp 1134 -
PaintWorkletGlobalScope.h 941 -
PaintWorkletImpl.cpp static 1231 -
PaintWorkletImpl.h 965 -
PostTraversalTask.cpp 1126 -
PostTraversalTask.h a task to be performed immediately after a Servo traversal 2191 100 %
PreferenceSheet.cpp 10490 -
PreferenceSheet.h Some prefable colors for style system use 2987 100 %
PreloadedStyleSheet.cpp a CSS style sheet returned from nsIStyleSheetService.preloadSheet 2547 -
PreloadedStyleSheet.h a CSS style sheet returned from nsIStyleSheetService.preloadSheet 1872 -
PseudoStyleRequest.h The pseudo style request is used to get the pseudo style of an element. This include a pseudo style type and an identifier which is used for functional pseudo style. 3142 100 %
PseudoStyleType.cpp static 3326 -
PseudoStyleType.h 5066 100 %
res -
RestyleManager.cpp 157825 -
RestyleManager.h A stack class used to pass some common restyle state in a slightly more comfortable way than a bunch of individual arguments, and that also checks that the change hint used for optimization is correctly used in debug mode. 25013 95 %
Rule.cpp base class for all rule types in a CSS style sheet 5142 -
Rule.h base class for all rule types in a CSS style sheet 4603 100 %
RustCell.h an object with the same layout as a Rust std::cell::Cell<T> 1237 100 %
ServoBindings.h FFI functions for Gecko to call into Servo 4495 -
ServoBindings.toml 40804 -
ServoBindingTypes.h C++ types corresponding to Servo and Gecko types used across bindings, with some annotations to indicate ownership expectations 6591 95 %
ServoBoxedTypeList.inc a list of all Servo Box<T> types used across bindings, for preprocessing 1486 100 %
ServoComputedData.h ServoComputedData and its related types. 4229 100 %
ServoCSSParser.cpp CSS parsing utility functions 4124 -
ServoCSSParser.h CSS parsing utility functions 7288 -
ServoCSSRuleList.cpp representation of CSSRuleList for stylo 12088 -
ServoCSSRuleList.h representation of CSSRuleList for stylo 3006 81 %
ServoElementSnapshot.cpp 2682 -
ServoElementSnapshot.h A bitflags enum class used to determine what data does a ServoElementSnapshot contains. 4854 76 %
ServoElementSnapshotTable.h 620 -
ServoLockedArcTypeList.inc a list of all Servo Arc<Locked<T>> types used across bindings 1050 100 %
ServoStyleConstsForwards.h This file contains forward declarations and typedefs for types that cbindgen cannot understand but renames / prefixes, and includes for some of the types it needs. 7257 100 %
ServoStyleConstsInlines.h Some inline functions declared in cbindgen.toml 46173 94 %
ServoStyleSet.cpp 60918 -
ServoStyleSet.h The set of style sheets that apply to a document, backed by a Servo Stylist. A ServoStyleSet contains StyleSheets. 26996 100 %
ServoStyleSetInlines.h 778 100 %
ServoTraversalStatistics.h 808 100 %
ServoTypes.h types defined to pass values through Gecko_* and Servo_* FFI functions 4445 100 %
ServoUtils.h some utilities for Gecko to use for Servo initialization and assertions 1412 100 %
ShadowParts.cpp 3857 -
ShadowParts.h 1199 100 %
SharedStyleSheetCache.cpp 10015 -
SharedStyleSheetCache.h 4004 100 %
SharedSubResourceCache.cpp 6141 -
SharedSubResourceCache.h 21738 89 %
SheetLoadData.h Data needed to properly load a stylesheet * ******************************************* 11460 92 %
SheetParsingMode.h Enum defining the mode in which a sheet is to be parsed. This is usually, but not always, the same as the cascade level at which the sheet will apply (see nsStyleSet.h). Most of the Loader APIs only support loading of author sheets. Author sheets are the normal case: styles embedded in or linked from HTML pages. They are also the most restricted. User sheets can do anything author sheets can do, and also get access to a few CSS extensions that are not yet suitable for exposure on the public Web, but are very useful for expressing user style overrides, such as @-moz-document rules. XXX: eUserSheetFeatures was added in bug 1035091, but some patches in that bug never landed to use this enum value. Currently, all the features in user sheet are also available in author sheet. Agent sheets have access to all author- and user-sheet features plus more extensions that are necessary for internal use but, again, not yet suitable for exposure on the public Web. Some of these are outright unsafe to expose; in particular, incorrect styling of anonymous box pseudo-elements can violate layout invariants. 1728 -
StreamLoader.cpp nsIRequestObserver implementation 10328 -
StreamLoader.h callback method used for ReadSegments 2029 100 %
StyleAnimationValue.cpp Utilities for animation of computed style values 9281 -
StyleAnimationValue.h Utilities for animation of computed style values 4473 100 %
StyleColor.cpp 2410 -
StyleColorInlines.h Inline functions for StyleColor (aka values::computed::Color) 2221 96 %
StylePreloadKind.h 1724 100 %
StyleSheet.cpp static 49151 -
StyleSheet.h Dummy 22593 99 %
StyleSheetInfo.h Struct for data common to CSSStyleSheetInner and ServoStyleSheet. 2481 -
StyleSheetInlines.h 813 78 %
test -
TimelineCollection.cpp static 2234 -
TimelineCollection.h 2095 100 %
TimelineManager.cpp 14827 -
TimelineManager.h 5626 100 %
tools -
TopLevelImageDocument.css This CSS stylesheet defines the rules to be applied to ImageDocuments that are top level (e.g. not iframes). 1472 -
TopLevelVideoDocument.css This CSS stylesheet defines the rules to be applied to VideoDocuments that are top level (e.g. not iframes). 821 -
typedom 91 %
URLExtraData.cpp thread-safe container of information for resolving url values 1541 -
URLExtraData.h thread-safe container of information for resolving url values 2480 100 %