Bug 1833466 - Implement CSSMarginRule and the corresponding DOM API. r=webidl,firefox...
[gecko.git] / layout / style / moz.build
blobce9ee36cea7f4b91392a34c7b9e116d7962f1a3f
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
10 with Files("nsComputedDOMStyle.*"):
11     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
13 with Files("nsROCSSPrimitiveValue.*"):
14     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
16 with Files("CSSRuleList.*"):
17     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
19 with Files("nsDOM*"):
20     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
22 with Files("AnimationCollection.*"):
23     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
25 with Files("AnimatedPropertyID*"):
26     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
28 with Files("AnimationCommon.*"):
29     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
31 with Files("nsAnimationManager.*"):
32     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
34 with Files("nsTransitionManager.*"):
35     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
37 with Files("StyleAnimationValue.*"):
38     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
40 TEST_DIRS += ["test"]
42 EXPORTS += [
43     "!nsCSSPropertyID.h",
44     "AnimationCommon.h",
45     "CounterStyleManager.h",
46     "nsAnimationManager.h",
47     "nsComputedDOMStyle.h",
48     "nsCSSAnonBoxes.h",
49     "nsCSSAnonBoxList.h",
50     "nsCSSCounterDescList.h",
51     "nsCSSFontDescList.h",
52     "nsCSSPropertyIDSet.h",
53     "nsCSSProps.h",
54     "nsCSSPseudoElementList.h",
55     "nsCSSPseudoElements.h",
56     "nsCSSValue.h",
57     "nsDOMCSSAttrDeclaration.h",
58     "nsDOMCSSDeclaration.h",
59     "nsFontFaceLoader.h",
60     "nsICSSDeclaration.h",
61     "nsICSSLoaderObserver.h",
62     "nsStyleAutoArray.h",
63     "nsStyleConsts.h",
64     "nsStyleStruct.h",
65     "nsStyleStructFwd.h",
66     "nsStyleStructInlines.h",
67     "nsStyleStructList.h",
68     "nsStyleTransformMatrix.h",
69     "nsStyleUtil.h",
72 EXPORTS.mozilla += [
73     "!ServoCSSPropList.h",
74     "AnimatedPropertyID.h",
75     "AnimatedPropertyIDSet.h",
76     "AnimationCollection.h",
77     "AttributeStyles.h",
78     "CachedInheritingStyles.h",
79     "ComputedStyle.h",
80     "ComputedStyleInlines.h",
81     "CSSEnabledState.h",
82     "CSSPropFlags.h",
83     "DeclarationBlock.h",
84     "DocumentStyleRootIterator.h",
85     "FontLoaderUtils.h",
86     "FontPreloader.h",
87     "GeckoBindings.h",
88     "GlobalStyleSheetCache.h",
89     "ImportScanner.h",
90     "LayerAnimationInfo.h",
91     "MappedDeclarationsBuilder.h",
92     "MediaFeatureChange.h",
93     "PostTraversalTask.h",
94     "PreferenceSheet.h",
95     "PreloadedStyleSheet.h",
96     "PseudoStyleType.h",
97     "RustCell.h",
98     "ServoBindings.h",
99     "ServoBindingTypes.h",
100     "ServoBoxedTypeList.h",
101     "ServoComputedData.h",
102     "ServoCSSParser.h",
103     "ServoCSSRuleList.h",
104     "ServoElementSnapshot.h",
105     "ServoElementSnapshotTable.h",
106     "ServoLockedArcTypeList.h",
107     "ServoStyleConstsForwards.h",
108     "ServoStyleConstsInlines.h",
109     "ServoStyleSet.h",
110     "ServoStyleSetInlines.h",
111     "ServoTraversalStatistics.h",
112     "ServoTypes.h",
113     "ServoUtils.h",
114     "ShadowParts.h",
115     "SharedStyleSheetCache.h",
116     "SharedSubResourceCache.h",
117     "StyleAnimationValue.h",
118     "StyleColorInlines.h",
119     "StyleSheet.h",
120     "StyleSheetInfo.h",
121     "StyleSheetInlines.h",
122     "TimelineCollection.h",
123     "TimelineManager.h",
124     "URLExtraData.h",
125     "UserAgentStyleSheetID.h",
126     "UserAgentStyleSheetList.h",
129 EXPORTS.mozilla.dom += [
130     "CSS.h",
131     "CSSContainerRule.h",
132     "CSSCounterStyleRule.h",
133     "CSSFontFaceRule.h",
134     "CSSFontFeatureValuesRule.h",
135     "CSSFontPaletteValuesRule.h",
136     "CSSImportRule.h",
137     "CSSKeyframeRule.h",
138     "CSSKeyframesRule.h",
139     "CSSLayerBlockRule.h",
140     "CSSLayerStatementRule.h",
141     "CSSMarginRule.h",
142     "CSSMediaRule.h",
143     "CSSMozDocumentRule.h",
144     "CSSNamespaceRule.h",
145     "CSSPageRule.h",
146     "CSSPropertyRule.h",
147     "CSSRuleList.h",
148     "CSSScopeRule.h",
149     "CSSStartingStyleRule.h",
150     "CSSStyleRule.h",
151     "CSSSupportsRule.h",
152     "CSSValue.h",
153     "FontFace.h",
154     "FontFaceImpl.h",
155     "FontFaceSet.h",
156     "FontFaceSetDocumentImpl.h",
157     "FontFaceSetImpl.h",
158     "FontFaceSetIterator.h",
159     "FontFaceSetWorkerImpl.h",
160     "MediaList.h",
161     "MediaQueryList.h",
162     "PaintWorkletGlobalScope.h",
165 EXPORTS.mozilla.css += [
166     "DocumentMatchingFunction.h",
167     "ErrorReporter.h",
168     "GroupRule.h",
169     "ImageLoader.h",
170     "Loader.h",
171     "Rule.h",
172     "SheetLoadData.h",
173     "SheetParsingMode.h",
174     "StreamLoader.h",
175     "StylePreloadKind.h",
178 UNIFIED_SOURCES += [
179     "AnimationCollection.cpp",
180     "AttributeStyles.cpp",
181     "CachedInheritingStyles.cpp",
182     "ComputedStyle.cpp",
183     "CounterStyleManager.cpp",
184     "CSS.cpp",
185     "CSSContainerRule.cpp",
186     "CSSCounterStyleRule.cpp",
187     "CSSFontFaceRule.cpp",
188     "CSSFontFeatureValuesRule.cpp",
189     "CSSFontPaletteValuesRule.cpp",
190     "CSSImportRule.cpp",
191     "CSSKeyframeRule.cpp",
192     "CSSKeyframesRule.cpp",
193     "CSSLayerBlockRule.cpp",
194     "CSSLayerStatementRule.cpp",
195     "CSSMarginRule.cpp",
196     "CSSMediaRule.cpp",
197     "CSSMozDocumentRule.cpp",
198     "CSSNamespaceRule.cpp",
199     "CSSPageRule.cpp",
200     "CSSPropertyRule.cpp",
201     "CSSRuleList.cpp",
202     "CSSScopeRule.cpp",
203     "CSSStartingStyleRule.cpp",
204     "CSSStyleRule.cpp",
205     "CSSSupportsRule.cpp",
206     "DeclarationBlock.cpp",
207     "DocumentStyleRootIterator.cpp",
208     "ErrorReporter.cpp",
209     "FontFace.cpp",
210     "FontFaceImpl.cpp",
211     "FontFaceSet.cpp",
212     "FontFaceSetDocumentImpl.cpp",
213     "FontFaceSetImpl.cpp",
214     "FontFaceSetIterator.cpp",
215     "FontFaceSetWorkerImpl.cpp",
216     "FontLoaderUtils.cpp",
217     "FontPreloader.cpp",
218     "GeckoBindings.cpp",
219     "GlobalStyleSheetCache.cpp",
220     "GroupRule.cpp",
221     "ImageLoader.cpp",
222     "ImportScanner.cpp",
223     "LayerAnimationInfo.cpp",
224     "Loader.cpp",
225     "MappedDeclarationsBuilder.cpp",
226     "MediaList.cpp",
227     "MediaQueryList.cpp",
228     "nsAnimationManager.cpp",
229     "nsComputedDOMStyle.cpp",
230     "nsCSSAnonBoxes.cpp",
231     "nsCSSProps.cpp",
232     "nsCSSPseudoElements.cpp",
233     "nsCSSValue.cpp",
234     "nsDOMCSSAttrDeclaration.cpp",
235     "nsDOMCSSDeclaration.cpp",
236     "nsDOMCSSValueList.cpp",
237     "nsFontFaceLoader.cpp",
238     "nsFontFaceUtils.cpp",
239     "nsICSSDeclaration.cpp",
240     "nsMediaFeatures.cpp",
241     "nsROCSSPrimitiveValue.cpp",
242     "nsStyleStruct.cpp",
243     "nsStyleTransformMatrix.cpp",
244     "nsStyleUtil.cpp",
245     "nsTransitionManager.cpp",
246     "PaintWorkletGlobalScope.cpp",
247     "PaintWorkletImpl.cpp",
248     "PostTraversalTask.cpp",
249     "PreferenceSheet.cpp",
250     "PreloadedStyleSheet.cpp",
251     "PseudoStyleType.cpp",
252     "Rule.cpp",
253     "ServoCSSParser.cpp",
254     "ServoCSSRuleList.cpp",
255     "ServoElementSnapshot.cpp",
256     "ServoStyleSet.cpp",
257     "ShadowParts.cpp",
258     "SharedStyleSheetCache.cpp",
259     "StreamLoader.cpp",
260     "StyleAnimationValue.cpp",
261     "StyleColor.cpp",
262     "StyleSheet.cpp",
263     "TimelineCollection.cpp",
264     "TimelineManager.cpp",
265     "URLExtraData.cpp",
268 include("/ipc/chromium/chromium-config.mozbuild")
270 FINAL_LIBRARY = "xul"
272 LOCAL_INCLUDES += [
273     "../base",
274     "../generic",
275     "../xul",
276     "/dom/base",
277     "/dom/html",
278     "/dom/xul",
279     "/image",
282 JAR_MANIFESTS += ["jar.mn"]
284 RESOURCE_FILES += [
285     "contenteditable.css",
286     "designmode.css",
289 CONTENT_ACCESSIBLE_FILES += [
290     "ImageDocument.css",
291     "res/accessiblecaret.css",
292     "res/details.css",
293     "res/plaintext.css",
294     "res/searchfield-cancel.svg",
295     "res/viewsource.css",
296     "TopLevelImageDocument.css",
297     "TopLevelVideoDocument.css",
301 GeneratedFile(
302     "nsCSSPropertyID.h",
303     script="GenerateCSSPropertyID.py",
304     entry_point="generate",
305     inputs=["nsCSSPropertyID.h.in", "!ServoCSSPropList.py"],
307 GeneratedFile(
308     "ServoCSSPropList.h",
309     script="GenerateServoCSSPropList.py",
310     entry_point="generate_header",
311     inputs=["!ServoCSSPropList.py"],
313 GeneratedFile(
314     "ServoCSSPropList.py",
315     script="GenerateServoCSSPropList.py",
316     entry_point="generate_data",
317     inputs=["ServoCSSPropList.mako.py"],
320 if CONFIG["COMPILE_ENVIRONMENT"]:
321     EXPORTS.mozilla += [
322         "!CompositorAnimatableProperties.h",
323         "!CountedUnknownProperties.h",
324         "!ServoStyleConsts.h",
325     ]
327     GeneratedFile(
328         "CompositorAnimatableProperties.h",
329         script="GenerateCompositorAnimatableProperties.py",
330         entry_point="generate",
331         inputs=["!ServoCSSPropList.py"],
332     )
333     GeneratedFile(
334         "CountedUnknownProperties.h",
335         script="GenerateCountedUnknownProperties.py",
336         entry_point="generate",
337         inputs=[
338             "/servo/components/style/properties/counted_unknown_properties.py",
339         ],
340     )
341     GeneratedFile(
342         "nsComputedDOMStyleGenerated.inc",
343         script="GenerateComputedDOMStyleGenerated.py",
344         entry_point="generate",
345         inputs=["!ServoCSSPropList.py"],
346     )
347     GeneratedFile(
348         "nsCSSPropsGenerated.inc",
349         script="GenerateCSSPropsGenerated.py",
350         entry_point="generate",
351         inputs=["!ServoCSSPropList.py"],
352     )
353     CbindgenHeader(
354         "ServoStyleConsts.h",
355         inputs=["/servo/ports/geckolib", "/servo/components/style"],
356     )
358     CONFIGURE_SUBST_FILES += [
359         "extra-bindgen-flags",
360     ]