1[structs]
2headers = [
3    "nsStyleStruct.h",
4    "mozilla/StyleAnimationValue.h",
5    "gfxFontConstants.h",
6    "gfxFontFeatures.h",
7    "nsStyleConsts.h",
8    "mozilla/css/Loader.h",
9    "mozilla/css/SheetLoadData.h",
10    "mozilla/DeclarationBlock.h",
11    "mozilla/dom/AnimationEffectBinding.h",
12    "mozilla/dom/HTMLSlotElement.h",
13    "mozilla/dom/KeyframeEffectBinding.h",
14    "mozilla/dom/MediaList.h",
15    "mozilla/dom/ShadowRoot.h",
16    "mozilla/dom/SVGPathSegBinding.h",
17    "mozilla/ipc/ByteBuf.h",
18    "mozilla/AnimationPropertySegment.h",
19    "mozilla/ComputedTiming.h",
20    "mozilla/ComputedTimingFunction.h",
21    "mozilla/CORSMode.h",
22    "mozilla/Keyframe.h",
23    "mozilla/ServoElementSnapshot.h",
24    "mozilla/ServoElementSnapshotTable.h",
25    "mozilla/dom/Element.h",
26    "mozilla/dom/ChildIterator.h",
27    "mozilla/dom/NameSpaceConstants.h",
28    "mozilla/LookAndFeel.h",
29    "mozilla/GeckoBindings.h",
30    "mozilla/ServoBindings.h",
31    "mozilla/ComputedStyle.h",
32    "mozilla/PresShell.h",
33    "mozilla/ServoTraversalStatistics.h",
34    "mozilla/SizeOfState.h",
35    "nsCSSProps.h",
36    "nsMappedAttributes.h",
37    "nsNameSpaceManager.h",
38]
39raw-lines = [
40    # FIXME(emilio): Incrementally remove these "pub use"s. Probably
41    # mozilla::css and mozilla::dom are easier.
42    "pub use self::root::*;",
43    "pub use self::root::mozilla::*;",
44    "pub use self::root::mozilla::css::*;",
45    "pub use self::root::mozilla::dom::*;",
46]
47hide-types = [
48    ".*char_traits",
49    ".*incompatible_char_type",
50    # https://github.com/rust-lang/rust-bindgen/issues/1503
51    "mozilla::StyleTimingFunction.*",
52    # https://github.com/rust-lang/rust-bindgen/issues/1559
53    "mozilla::StyleGenericTransformOperation_.*",
54]
55bitfield-enums = [
56    "nsChangeHint",
57    "mozilla::OriginFlags",
58    "mozilla::StyleTextUnderlinePosition",
59]
60rusty-enums = [
61    "nsCompatibility",
62    "mozilla::EffectCompositor_CascadeLevel",
63    "mozilla::SheetType",
64    "mozilla::dom::CallerType",
65    "mozilla::dom::IterationCompositeOperation",
66    "mozilla::dom::CompositeOperation",
67    "mozilla::InheritTarget",
68    "mozilla::css::DocumentMatchingFunction",
69    "mozilla::css::SheetParsingMode",
70    "nsStyleSVGOpacitySource",
71    "mozilla::dom::Document_DocumentTheme",
72    "mozilla::dom::Document_Type",
73    "mozilla::LookAndFeel_IntID",
74    "mozilla::LookAndFeel_FloatID",
75    "nsCSSUnit",
76    "nsCSSFontDesc",
77    "nsCSSPropertyID",
78    "nsCSSCounterDesc",
79    "nsresult",
80    "nsAtom_AtomKind",
81    "nsStyleImageLayers_LayerType",
82    "mozilla::ServoElementSnapshotFlags",
83    "mozilla::Side",
84    "mozilla::dom::PlaybackDirection",
85    "mozilla::dom::FillMode",
86    "mozilla::HalfCorner",
87    "mozilla::StyleFloatEdge",
88    "mozilla::StyleShapeRadius",
89    "mozilla::StyleWindowDragging",
90    "mozilla::StyleAnimationPlayState",
91    "mozilla::StyleOrient",
92    "mozilla::StyleBoxSizing",
93    "mozilla::StyleClear",
94    "mozilla::StyleColumnFill",
95    "mozilla::StyleColumnSpan",
96    "mozilla::StyleDirection",
97    "mozilla::StyleFloat",
98    "mozilla::StyleImageOrientation",
99    "mozilla::StyleInert",
100    "mozilla::StyleUserModify",
101    "mozilla::StyleUserInput",
102    "mozilla::StyleBoxDirection",
103    "mozilla::StyleRubyAlign",
104    "mozilla::StyleTextSizeAdjust",
105    "mozilla::StyleHyphens",
106    "mozilla::StyleRubyPosition",
107    "mozilla::StyleShapeSourceType",
108    "mozilla::StyleVisibility",
109    "mozilla::StyleBasicShapeType",
110    "nsStyleImageLayers_Size_DimensionType",
111    "mozilla::StyleBorderCollapse",
112    "mozilla::StyleBorderImageRepeat",
113    "mozilla::StyleBoxPack",
114    "mozilla::StyleWindowShadow",
115    "mozilla::StyleDominantBaseline",
116    "mozilla::StyleBoxOrient",
117    "mozilla::StyleBoxAlign",
118    "mozilla::StyleUserFocus",
119    "mozilla::StyleUserSelect",
120    "mozilla::StyleImageLayerRepeat",
121    "mozilla::StyleImageLayerAttachment",
122    "mozilla::StylePositionProperty",
123    "mozilla::StyleBoxDecorationBreak",
124    "mozilla::StyleBorderStyle",
125    "mozilla::StyleRuleInclusion",
126    "mozilla::StyleGridTrackBreadth",
127    "mozilla::StyleOverscrollBehavior",
128    "mozilla::StyleImeMode",
129    "mozilla::StyleOverflowAnchor",
130    "mozilla::StylePointerEvents",
131    "mozilla::StyleScrollbarWidth",
132    "mozilla::StyleWhiteSpace",
133    "mozilla::StyleTextRendering",
134    "mozilla::StyleFlexDirection",
135    "mozilla::StyleStrokeLinecap",
136    "mozilla::StyleStrokeLinejoin",
137    "mozilla::StyleFlexWrap",
138    "mozilla::StyleMathVariant",
139    "mozilla::StyleTextDecorationSkipInk",
140    "mozilla::StyleTextDecorationLength",
141    "mozilla::StyleMaskType",
142    "mozilla::StyleShapeRendering",
143    "mozilla::StyleTextAnchor",
144    "mozilla::StyleObjectFit",
145    "mozilla::StyleTopLayer",
146    "mozilla::StyleIsolation",
147    "mozilla::StyleTextOrientation",
148    "mozilla::StyleTableLayout",
149    "mozilla::StyleEmptyCells",
150    "nsStyleImageType",
151    "nsINode_BooleanFlag",
152    "mozilla::PseudoStyleType",
153    "mozilla::LookAndFeel_ColorID",
154    "mozilla::LookAndFeel_FontID",
155    "nsStyleTransformMatrix::MatrixTransformOperator",
156    "mozilla::StyleGeometryBox",
157    "mozilla::SystemColor",
158    "mozilla::StyleMaskMode",
159    "mozilla::StyleScrollBehavior",
160    "mozilla::StyleColorInterpolation",
161    "mozilla::StyleVectorEffect",
162    "mozilla::StyleBackfaceVisibility",
163    "mozilla::StyleBlend",
164    "mozilla::StyleMaskComposite",
165    "mozilla::StyleWritingModeProperty",
166]
167whitelist-vars = [
168    "NS_ATTRVALUE_.*",
169    "NODE_.*",
170    "ELEMENT_.*",
171    "NS_FONT_.*",
172    "NS_STYLE_.*",
173    "NS_MATHML_.*",
174    "NS_RADIUS_.*",
175    "BORDER_COLOR_.*",
176    "BORDER_STYLE_.*",
177    "CSS_PSEUDO_ELEMENT_.*",
178    "SERVO_CSS_PSEUDO_ELEMENT_FLAGS_.*",
179    "kNameSpaceID_.*",
180    "kGenericFont_.*",
181    "kPresContext_.*",
182    "nsNameSpaceManager_.*",
183    "GECKO_IS_NIGHTLY",
184    "NS_SAME_AS_FOREGROUND_COLOR",
185    "mozilla::detail::gGkAtoms",
186    "mozilla::detail::kGkAtomsArrayOffset",
187    "mozilla::dom::SVGPathSeg_Binding::PATHSEG_.*",
188]
189# TODO(emilio): A bunch of types here can go away once we generate bindings and
190# structs together.
191whitelist-types = [
192    "RawGecko.*",
193    "RawServo.*",
194    "ServoCssRules",
195    "nsFontFaceRuleContainer",
196    "Matrix4x4Components",
197    "mozilla::ComputedKeyframeValues",
198    "mozilla::Keyframe",
199    "mozilla::PropertyValuePair",
200    "mozilla::DeclarationBlockMutationClosure",
201    "mozilla::AnimationPropertySegment",
202    "mozilla::AnonymousCounterStyle",
203    "mozilla::AtomArray",
204    "mozilla::ComputedTiming",
205    "mozilla::ComputedTimingFunction",
206    "mozilla::ComputedTimingFunction::BeforeFlag",
207    "mozilla::Matrix4x4Components",
208    "mozilla::PreferenceSheet",
209    "mozilla::SeenPtrs",
210    "mozilla::ServoElementSnapshot.*",
211    "mozilla::ComputedStyle",
212    "mozilla::StyleSheet",
213    "mozilla::ServoStyleSheetInner",
214    "mozilla::ServoStyleSetSizes",
215    "mozilla::ServoTraversalStatistics",
216    "mozilla::css::LoaderReusableStyleSheets",
217    "mozilla::css::SheetLoadData",
218    "mozilla::css::SheetLoadDataHolder",
219    "mozilla::css::SheetParsingMode",
220    "mozilla::css::DocumentMatchingFunction",
221    "mozilla::dom::IterationCompositeOperation",
222    "mozilla::dom::StyleChildrenIterator",
223    "mozilla::HalfCorner",
224    "mozilla::ipc::ByteBuf",
225    "mozilla::MallocSizeOf",
226    "mozilla::OriginFlags",
227    "mozilla::PropertyStyleAnimationValuePair",
228    "mozilla::ServoTraversalFlags",
229    "mozilla::StyleShapeRadius",
230    "mozilla::StyleGrid.*",
231    "mozilla::UpdateAnimationsTasks",
232    "mozilla::PointerCapabilities",
233    "mozilla::LookAndFeel",
234    "mozilla::gfx::Float",
235    "mozilla::gfx::FontVariation",
236    "mozilla::StyleImageLayerAttachment",
237    "gfxFontFeature",
238    "gfxFontVariation",
239    ".*ThreadSafe.*Holder",
240    "AnonymousContent",
241    "AudioContext",
242    "DefaultDelete",
243    "DOMIntersectionObserverEntry",
244    "Element",
245    "mozilla::FontSizePrefs",
246    "FragmentOrURL",
247    "FrameRequestCallback",
248    "GeckoParserExtraData",
249    "GeckoFontMetrics",
250    "gfxFontFeatureValueSet",
251    "GridNamedArea",
252    "mozilla::HalfCorner",
253    "Image",
254    "ImageURL",
255    "Keyframe",
256    "mozilla::MediumFeaturesChangedResult",
257    "nsAttrName",
258    "nsAttrValue",
259    "nscolor",
260    "nsChangeHint",
261    "nsCSSCounterDesc",
262    "nsCSSFontDesc",
263    "nsCSSKTableEntry",
264    "nsCSSPropertyID",
265    "nsCSSPropertyIDSet",
266    "nsCSSProps",
267    "nsCSSShadowArray",
268    "nsCSSValue",
269    "nsCSSValueList",
270    "nsCSSValueList_heap",
271    "nsCSSValuePair_heap",
272    "nsCSSValuePairList",
273    "nsCSSValuePairList_heap",
274    "nsCSSValueTriplet_heap",
275    "nsCursorImage",
276    "nsFont",
277    "nsAtom",
278    "nsDynamicAtom",
279    "nsMargin",
280    "nsRect",
281    "nsresult",
282    "nsSimpleContentList",
283    "nsSize",
284    "nsStyleBackground",
285    "nsStyleBorder",
286    "nsStyleColor",
287    "nsStyleColumn",
288    "nsStyleContent",
289    "nsStyleContentData",
290    "ComputedStyle",
291    "nsStyleCounterData",
292    "nsStyleDisplay",
293    "nsStyleEffects",
294    "nsStyleFilter",
295    "nsStyleFont",
296    "nsStyleGradient",
297    "nsStyleGridTemplate",
298    "nsStyleImage",
299    "nsStyleImageLayers",
300    "nsStyleList",
301    "nsStyleMargin",
302    "nsStyleOutline",
303    "nsStylePadding",
304    "nsStylePage",
305    "nsStylePosition",
306    "nsStyleSides",
307    "nsStyleSVG",
308    "nsStyleSVGOpacitySource",
309    "nsStyleSVGReset",
310    "nsStyleTable",
311    "nsStyleTableBorder",
312    "nsStyleText",
313    "nsStyleTextReset",
314    "nsStyleUIReset",
315    "nsStyleUnion",
316    "nsStyleUI",
317    "nsStyleVisibility",
318    "nsStyleXUL",
319    "nsTArrayHeader",
320    "Position",
321    "PropertyValuePair",
322    "Runnable",
323    "ServoAttrSnapshot",
324    "ServoComputedData",
325    "ServoComputedDataBorrowed",
326    "ServoElementSnapshot",
327    "ComputedStyleStrong",
328    "ComputedStyleBorrowed",
329    "ComputedStyleBorrowedOrNull",
330    "SheetParsingMode",
331    "StaticRefPtr",
332    "StyleAnimation",
333    "StyleBasicShapeType",
334    "StyleGeometryBox",
335    "StyleShapeSource",
336    "StyleTransition",
337    "ThemeWidgetType",
338    "mozilla::UniquePtr",
339    "mozilla::DeclarationBlock",
340    "mozilla::DefaultDelete",
341    "mozilla::Side",
342    "mozilla::binding_danger::AssertAndSuppressCleanupPolicy",
343    "mozilla::ParsingMode",
344    "mozilla::InheritTarget",
345    "mozilla::dom::MediaList",
346    "mozilla::StyleRuleInclusion",
347    "nsStyleTransformMatrix::MatrixTransformOperator",
348]
349opaque-types = [
350    "mozilla::StyleThinArc", # https://github.com/rust-lang/rust-bindgen/issues/1557
351    "std::pair__PCCP",
352    "std::namespace::atomic___base", "std::atomic__My_base",
353    "std::atomic",
354    "std::atomic___base",
355    # We want everything but FontVariation and Float to be opaque but we don't
356    # have negative regexes.
357    "mozilla::gfx::(.{0,4}|.{6,12}|.{14,}|([^F][^o][^n][^t][^V][^a][^r][^i][^a][^t][^i][^o][^n])|([^F][^l][^o][^a][^t]))",
358    "mozilla::dom::Sequence",
359    "mozilla::SmallPointerArray",
360    "mozilla::dom::Optional",
361    "mozilla::dom::OwningNodeOrString_Value",
362    "mozilla::dom::Nullable",
363    "mozilla::external::AtomicRefCounted",
364    "RefPtr_Proxy",
365    "RefPtr_Proxy_member_function",
366    "nsAutoPtr_Proxy",
367    "nsAutoPtr_Proxy_member_function",
368    "mozilla::detail::HashTable", # <- We should be able to remove this and
369                                  # HashSet below once
370                                  # https://github.com/rust-lang/rust-bindgen/pull/1515
371                                  # is available
372    "mozilla::detail::PointerType",
373    "mozilla::HashSet",
374    "mozilla::Pair",
375    "mozilla::Pair_Base",
376    "mozilla::ScrollAxis",  # <- For some reason the alignment of this is 4
377                            # for clang.
378    "mozilla::SeenPtrs",
379    "mozilla::SupportsWeakPtr",
380    "mozilla::Tuple",
381    "SupportsWeakPtr",
382    "mozilla::detail::WeakReference",
383    "mozilla::WeakPtr",
384    "nsWritingIterator_reference", "nsReadingIterator_reference",
385    "nsTObserverArray",  # <- Inherits from nsAutoTObserverArray<T, 0>
386    "nsTHashtable",  # <- Inheriting from inner typedefs that clang
387                     #    doesn't expose properly.
388    "nsTBaseHashSet", # <- Ditto
389    "nsBaseHashtable", "nsRefCountedHashtable", "nsClassHashtable",  # <- Ditto
390    "mozilla::dom::Document_SelectorCache",  # <- Inherits from nsExpirationTracker<.., 4>
391    "nsPIDOMWindow",  # <- Takes the vtable from a template parameter, and we can't
392                      #    generate it conditionally.
393    "JS::Rooted",
394    "mozilla::Maybe",
395    "gfxSize",  # <- union { struct { T width; T height; }; T components[2] };
396    "gfxSize_Super",  # Ditto.
397    "mozilla::StyleAnimationValue",
398    "StyleAnimationValue", # pulls in a whole bunch of stuff we don't need in the bindings
399    "mozilla::dom::.*Callback", # Pulls in ErrorResult and other things that
400                                # don't align properly on Linux 32-bit
401    "mozilla::SchedulerGroup", # Non-standard-layout packing of field into superclass
402    "mozilla::detail::GkAtoms", # https://bugzilla.mozilla.org/show_bug.cgi?id=1517685
403    "mozilla::detail::ThreadLocal.*",
404]
405
406# All cbindgen-types are in mod "structs::root::mozilla".
407# FIXME(emilio): We probably want to automate this somehow...
408cbindgen-types = [
409    { gecko = "StyleAnimationTimeline", servo = "crate::values::computed::box_::AnimationTimeline" },
410    { gecko = "StyleAppearance", servo = "crate::values::specified::Appearance" },
411    { gecko = "StyleAspectRatio", servo = "crate::values::computed::position::AspectRatio" },
412    { gecko = "StyleComputedFontStretchRange", servo = "crate::font_face::ComputedFontStretchRange" },
413    { gecko = "StyleComputedFontStyleDescriptor", servo = "crate::font_face::ComputedFontStyleDescriptor" },
414    { gecko = "StyleComputedFontWeightRange", servo = "crate::font_face::ComputedFontWeightRange" },
415    { gecko = "StyleComputedTimingFunction", servo = "crate::values::computed::easing::TimingFunction" },
416    { gecko = "StylePrefersContrast", servo = "crate::gecko::media_features::PrefersContrast" },
417    { gecko = "StyleCursorKind", servo = "crate::values::computed::ui::CursorKind" },
418    { gecko = "StyleDisplay", servo = "crate::values::specified::Display" },
419    { gecko = "StyleDisplayMode", servo = "crate::gecko::media_features::DisplayMode" },
420    { gecko = "StylePlatform", servo = "crate::gecko::media_features::Platform" },
421    { gecko = "StylePrefersColorScheme", servo = "crate::gecko::media_features::PrefersColorScheme" },
422    { gecko = "StyleFillRule", servo = "crate::values::generics::basic_shape::FillRule" },
423    { gecko = "StyleFontDisplay", servo = "crate::font_face::FontDisplay" },
424    { gecko = "StyleFontFaceSourceListComponent", servo = "crate::font_face::FontFaceSourceListComponent" },
425    { gecko = "StyleFontLanguageOverride", servo = "crate::values::computed::font::FontLanguageOverride" },
426    { gecko = "StyleOffsetPath", servo = "crate::values::computed::motion::OffsetPath" },
427    { gecko = "StyleGenericOffsetPath", servo = "crate::values::generics::motion::OffsetPath" },
428    { gecko = "StyleOffsetRotate", servo = "crate::values::computed::motion::OffsetRotate" },
429    { gecko = "StylePathCommand", servo = "crate::values::specified::svg_path::PathCommand" },
430    { gecko = "StyleRayFunction", servo = "crate::values::generics::motion::RayFunction" },
431    { gecko = "StyleUnicodeRange", servo = "cssparser::UnicodeRange" },
432    { gecko = "StyleOverflowWrap", servo = "crate::values::computed::OverflowWrap" },
433    { gecko = "StyleWordBreak", servo = "crate::values::computed::WordBreak" },
434    { gecko = "StyleTextJustify", servo = "crate::values::computed::TextJustify" },
435    { gecko = "StyleMozControlCharacterVisibility", servo = "crate::values::computed::text::MozControlCharacterVisibility" },
436    { gecko = "StyleLineBreak", servo = "crate::values::computed::LineBreak" },
437    { gecko = "StyleUserSelect", servo = "crate::values::computed::UserSelect" },
438    { gecko = "StyleBreakBetween", servo = "crate::values::computed::BreakBetween" },
439    { gecko = "StyleBreakWithin", servo = "crate::values::computed::BreakWithin" },
440    { gecko = "StyleBorderStyle", servo = "crate::values::computed::BorderStyle" },
441    { gecko = "StyleOutlineStyle", servo = "crate::values::computed::OutlineStyle" },
442    { gecko = "StyleScrollDirection", servo = "crate::stylesheets::scroll_timeline_rule::ScrollDirection" },
443    { gecko = "StyleScrollSnapAlign", servo = "crate::values::computed::ScrollSnapAlign" },
444    { gecko = "StyleScrollSnapStrictness", servo = "crate::values::computed::ScrollSnapStrictness" },
445    { gecko = "StyleScrollSnapType", servo = "crate::values::computed::ScrollSnapType" },
446    { gecko = "StyleResize", servo = "crate::values::computed::Resize" },
447    { gecko = "StyleOverflowClipBox", servo = "crate::values::computed::OverflowClipBox" },
448    { gecko = "StyleFloat", servo = "crate::values::computed::Float" },
449    { gecko = "StyleOverscrollBehavior", servo = "crate::values::computed::OverscrollBehavior" },
450    { gecko = "StyleTextAlign", servo = "crate::values::computed::TextAlign" },
451    { gecko = "StyleTextAlignLast", servo = "crate::values::computed::text::TextAlignLast" },
452    { gecko = "StyleTextOverflow", servo = "crate::values::computed::TextOverflow" },
453    { gecko = "StyleOverflow", servo = "crate::values::computed::Overflow" },
454    { gecko = "StyleOverflowAnchor", servo = "crate::values::computed::OverflowAnchor" },
455    { gecko = "StyleTextDecorationSkipInk", servo = "crate::values::computed::TextDecorationSkipInk" },
456    { gecko = "StyleTextDecorationLength", servo = "crate::values::computed::TextDecorationLength" },
457    { gecko = "StyleRubyPosition", servo = "crate::values::computed::RubyPosition" },
458    { gecko = "StyleLength", servo = "crate::values::computed::CSSPixelLength" },
459    { gecko = "StyleLengthPercentage", servo = "crate::values::computed::LengthPercentage" },
460    { gecko = "StyleNonNegativeLengthPercentage", servo = "crate::values::computed::NonNegativeLengthPercentage" },
461    { gecko = "StyleGenericLengthPercentageOrAuto", servo = "crate::values::generics::length::LengthPercentageOrAuto" },
462    { gecko = "StyleGenericLengthPercentageOrNormal", servo = "crate::values::generics::length::LengthPercentageOrNormal" },
463    { gecko = "StyleLengthPercentageOrAuto", servo = "crate::values::computed::LengthPercentageOrAuto" },
464    { gecko = "StyleNonNegativeLengthPercentageOrAuto", servo = "crate::values::computed::NonNegativeLengthPercentageOrAuto" },
465    { gecko = "StyleRect", servo = "crate::values::generics::rect::Rect" },
466    { gecko = "StyleIntersectionObserverRootMargin", servo = "crate::values::specified::gecko::IntersectionObserverRootMargin" },
467    { gecko = "StyleGenericSize", servo = "crate::values::generics::length::Size" },
468    { gecko = "StyleGenericMaxSize", servo = "crate::values::generics::length::MaxSize" },
469    { gecko = "StyleGenericFlexBasis", servo = "crate::values::generics::flex::FlexBasis" },
470    { gecko = "StyleSize", servo = "crate::values::computed::Size" },
471    { gecko = "StyleMaxSize", servo = "crate::values::computed::MaxSize" },
472    { gecko = "StyleFlexBasis", servo = "crate::values::computed::FlexBasis" },
473    { gecko = "StylePosition", servo = "crate::values::computed::Position" },
474    { gecko = "StylePositionOrAuto", servo = "crate::values::computed::PositionOrAuto" },
475    { gecko = "StyleGenericPositionOrAuto", servo = "crate::values::generics::position::PositionOrAuto" },
476    { gecko = "StyleBackgroundSize", servo = "crate::values::computed::BackgroundSize" },
477    { gecko = "StyleGenericBackgroundSize", servo = "crate::values::generics::background::BackgroundSize" },
478    { gecko = "StyleBorderImageSlice", servo = "crate::values::computed::BorderImageSlice" },
479    { gecko = "StyleGenericLengthOrNumber", servo = "crate::values::generics::length::LengthOrNumber" },
480    { gecko = "StyleCSSPixelLength", servo = "crate::values::computed::length::CSSPixelLength" },
481    { gecko = "StyleNonNegativeLength", servo = "crate::values::computed::NonNegativeLength" },
482    { gecko = "StyleNonNegativeNumber", servo = "crate::values::computed::NonNegativeNumber" },
483    { gecko = "StyleZeroToOneNumber", servo = "crate::values::computed::ZeroToOneNumber" },
484    { gecko = "StylePercentage", servo = "crate::values::computed::Percentage" },
485    { gecko = "StylePerspective", servo = "crate::values::computed::Perspective" },
486    { gecko = "StyleGenericPerspective", servo = "crate::values::generics::box_::Perspective" },
487    { gecko = "StyleZIndex", servo = "crate::values::computed::ZIndex" },
488    { gecko = "StyleGenericZIndex", servo = "crate::values::generics::position::ZIndex" },
489    { gecko = "StyleTransformOrigin", servo = "crate::values::computed::TransformOrigin" },
490    { gecko = "StyleTransformStyle", servo = "crate::values::computed::TransformStyle" },
491    { gecko = "StyleGenericBorderRadius", servo = "crate::values::generics::border::BorderRadius" },
492    { gecko = "StyleLetterSpacing", servo = "crate::values::computed::text::LetterSpacing" },
493    { gecko = "StyleGenericLineHeight", servo = "crate::values::generics::text::LineHeight" },
494    { gecko = "StyleCaretColor", servo = "crate::values::computed::color::CaretColor" },
495    { gecko = "StyleContain", servo = "crate::values::computed::Contain" },
496    { gecko = "StyleRestyleHint", servo = "crate::invalidation::element::restyle_hints::RestyleHint" },
497    { gecko = "StyleTouchAction", servo = "crate::values::computed::TouchAction" },
498    { gecko = "StyleWillChange", servo = "crate::values::specified::box_::WillChange" },
499    { gecko = "StyleColorScheme", servo = "crate::values::specified::color::ColorScheme" },
500    { gecko = "StyleTextDecorationLine", servo = "crate::values::computed::TextDecorationLine" },
501    { gecko = "StyleTextTransform", servo = "crate::values::computed::TextTransform" },
502    { gecko = "StyleTextUnderlinePosition", servo = "crate::values::computed::TextUnderlinePosition" },
503    { gecko = "StyleOwned", servo = "crate::gecko_bindings::sugar::ownership::Owned" },
504    { gecko = "StyleOwnedOrNull", servo = "crate::gecko_bindings::sugar::ownership::OwnedOrNull" },
505    { gecko = "StyleStrong", servo = "crate::gecko_bindings::sugar::ownership::Strong" },
506    { gecko = "StyleGenericFontFamily", servo = "crate::values::computed::font::GenericFontFamily" },
507    { gecko = "StyleFontFamily", servo = "crate::values::computed::font::FontFamily" },
508    { gecko = "StyleGenericFontSizeAdjust", servo = "crate::values::generics::font::GenericFontSizeAdjust" },
509    { gecko = "StyleFontFamilyNameSyntax", servo = "crate::values::computed::font::FontFamilyNameSyntax" },
510    { gecko = "StyleGenericColor", servo = "crate::values::generics::color::Color" },
511    { gecko = "StyleSystemColor", servo = "crate::values::specified::color::SystemColor" },
512    { gecko = "StyleSystemFont", servo = "crate::values::specified::font::SystemFont" },
513    { gecko = "StyleGenericColorOrAuto", servo = "crate::values::generics::color::ColorOrAuto" },
514    { gecko = "StyleGenericScrollbarColor", servo = "crate::values::generics::ui::ScrollbarColor" },
515    { gecko = "StyleRGBA", servo = "cssparser::RGBA" },
516    { gecko = "StyleOrigin", servo = "crate::stylesheets::Origin" },
517    { gecko = "StyleGenericVerticalAlign", servo = "crate::values::generics::box_::VerticalAlign" },
518    { gecko = "StyleVerticalAlignKeyword", servo = "crate::values::generics::box_::VerticalAlignKeyword" },
519    { gecko = "StyleGenericBasicShape", servo = "crate::values::generics::basic_shape::BasicShape" },
520    { gecko = "StyleArcSlice", servo = "style_traits::arc_slice::ArcSlice" },
521    { gecko = "StyleForgottenArcSlicePtr", servo = "style_traits::arc_slice::ForgottenArcSlicePtr" },
522    { gecko = "StyleOwnedSlice", servo = "style_traits::owned_slice::OwnedSlice" },
523    { gecko = "StyleMozContextProperties", servo = "crate::values::specified::svg::MozContextProperties" },
524    { gecko = "StyleQuotes", servo = "crate::values::specified::list::Quotes" },
525    { gecko = "StyleOwnedStr", servo = "style_traits::owned_str::OwnedStr" },
526    { gecko = "StyleGenericBoxShadow", servo = "crate::values::generics::effects::BoxShadow" },
527    { gecko = "StyleGenericSimpleShadow", servo = "crate::values::generics::effects::SimpleShadow" },
528    { gecko = "StyleGenericTransformOperation", servo = "crate::values::generics::transform::TransformOperation" },
529    { gecko = "StyleGenericTransform", servo = "crate::values::generics::transform::Transform" },
530    { gecko = "StyleGenericScale", servo = "crate::values::generics::transform::Scale" },
531    { gecko = "StyleGenericRotate", servo = "crate::values::generics::transform::Rotate" },
532    { gecko = "StyleGenericTranslate", servo = "crate::values::generics::transform::Translate" },
533    { gecko = "StyleAngle", servo = "crate::values::computed::Angle" },
534    { gecko = "StyleGenericBorderImageSideWidth", servo = "crate::values::generics::border::BorderImageSideWidth" },
535    { gecko = "StyleGenericUrlOrNone", servo = "crate::values::generics::url::UrlOrNone" },
536    { gecko = "StyleCssUrl", servo = "crate::gecko::url::CssUrl" },
537    { gecko = "StyleSpecifiedUrl", servo = "crate::gecko::url::SpecifiedUrl" },
538    { gecko = "StyleSpecifiedImageUrl", servo = "crate::gecko::url::SpecifiedImageUrl" },
539    { gecko = "StyleComputedUrl", servo = "crate::gecko::url::ComputedUrl" },
540    { gecko = "StyleComputedImageUrl", servo = "crate::gecko::url::ComputedImageUrl" },
541    { gecko = "StyleLoadData", servo = "crate::gecko::url::LoadData" },
542    { gecko = "StyleGenericFilter", servo = "crate::values::generics::effects::Filter" },
543    { gecko = "StyleGenericGradient", servo = "crate::values::generics::image::Gradient" },
544    { gecko = "StyleLineDirection", servo = "crate::values::computed::image::LineDirection" },
545    { gecko = "StyleGridTemplateAreas", servo = "crate::values::computed::position::GridTemplateAreas" },
546    { gecko = "StyleGenericGridLine", servo = "crate::values::generics::grid::GridLine" },
547    { gecko = "StyleGenericTrackSize", servo = "crate::values::generics::grid::TrackSize" },
548    { gecko = "StyleGenericTrackBreadth", servo = "crate::values::generics::grid::TrackBreadth" },
549    { gecko = "StyleGenericImplicitGridTracks", servo = "crate::values::generics::grid::ImplicitGridTracks" },
550    { gecko = "StyleImplicitGridTracks", servo = "crate::values::computed::ImplicitGridTracks" },
551    { gecko = "StyleNumberOrPercentage", servo = "crate::values::computed::NumberOrPercentage" },
552    { gecko = "StyleGenericSVGPaint", servo = "crate::values::generics::svg::SVGPaint" },
553    { gecko = "StyleGenericTrackRepeat", servo = "crate::values::generics::grid::TrackRepeat" },
554    { gecko = "StyleGenericTrackListValue", servo = "crate::values::generics::grid::TrackListValue" },
555    { gecko = "StyleGenericTrackList", servo = "crate::values::generics::grid::TrackList" },
556    { gecko = "StyleGenericGridTemplateComponent", servo = "crate::values::generics::grid::GridTemplateComponent" },
557    { gecko = "StyleTextEmphasisStyle", servo = "crate::values::computed::text::TextEmphasisStyle" },
558    { gecko = "StyleVariantAlternatesList", servo = "crate::values::specified::font::VariantAlternatesList" },
559    { gecko = "StyleSVGPaintOrder", servo = "crate::values::specified::svg::SVGPaintOrder" },
560    { gecko = "StyleClipRectOrAuto", servo = "crate::values::computed::ClipRectOrAuto" },
561    { gecko = "StyleCounterReset", servo = "crate::values::computed::CounterReset" },
562    { gecko = "StyleCounterSet", servo = "crate::values::computed::CounterSet" },
563    { gecko = "StyleCounterIncrement", servo = "crate::values::computed::CounterIncrement" },
564    { gecko = "StyleContent", servo = "crate::values::computed::counters::Content" },
565    { gecko = "StyleSymbolsType", servo = "crate::values::generics::SymbolsType" },
566    { gecko = "StyleCounterStyle", servo = "crate::values::generics::CounterStyle" },
567    { gecko = "StyleComputedJustifyItems", servo = "crate::values::computed::align::ComputedJustifyItems" },
568    { gecko = "StyleAlignItems", servo = "crate::values::computed::AlignItems" },
569    { gecko = "StyleJustifySelf", servo = "crate::values::computed::JustifySelf" },
570    { gecko = "StyleAlignSelf", servo = "crate::values::computed::AlignSelf" },
571    { gecko = "StyleAlignContent", servo = "crate::values::computed::align::AlignContent" },
572    { gecko = "StyleJustifyTracks", servo = "crate::values::computed::align::JustifyTracks" },
573    { gecko = "StyleAlignTracks", servo = "crate::values::computed::align::AlignTracks" },
574    { gecko = "StyleJustifyContent", servo = "crate::values::computed::align::JustifyContent" },
575    { gecko = "StyleComputedValueFlags", servo = "crate::computed_value_flags::ComputedValueFlags" },
576    { gecko = "StyleImage", servo = "crate::values::computed::Image" },
577    { gecko = "StyleShapeOutside", servo = "crate::values::computed::basic_shape::ShapeOutside" },
578    { gecko = "StyleClipPath", servo = "crate::values::computed::basic_shape::ClipPath" },
579    { gecko = "StyleGridAutoFlow", servo = "crate::values::computed::GridAutoFlow" },
580    { gecko = "StyleCursor", servo = "crate::values::computed::Cursor" },
581    { gecko = "StyleSVGStrokeDashArray", servo = "crate::values::computed::svg::SVGStrokeDashArray" },
582    { gecko = "StyleSVGWidth", servo = "crate::values::computed::svg::SVGWidth" },
583    { gecko = "StyleSVGOpacity", servo = "crate::values::computed::svg::SVGOpacity" },
584    { gecko = "StyleSVGLength", servo = "crate::values::computed::svg::SVGLength" },
585    { gecko = "StyleFontSizeKeyword", servo = "crate::values::specified::font::FontSizeKeyword" },
586    { gecko = "StyleDefaultFontSizes", servo = "crate::gecko::wrapper::DefaultFontSizes" },
587    { gecko = "StyleCaptionSide", servo = "crate::values::computed::table::CaptionSide" },
588    { gecko = "StylePageName", servo = "crate::values::specified::page::PageName" },
589    { gecko = "StylePageSize", servo = "crate::values::computed::page::PageSize" },
590    { gecko = "StyleDProperty", servo = "crate::values::specified::svg::DProperty" },
591    { gecko = "StyleImageRendering", servo = "crate::values::computed::ImageRendering" },
592    { gecko = "StylePrintColorAdjust", servo = "crate::values::computed::PrintColorAdjust" },
593    { gecko = "StyleScrollbarGutter", servo = "crate::values::computed::ScrollbarGutter" },
594    { gecko = "StyleHyphenateCharacter", servo = "crate::values::computed::HyphenateCharacter" },
595]
596
597mapped-generic-types = [
598    { generic = true, gecko = "mozilla::RustCell", servo = "::std::cell::Cell" },
599    { generic = false, gecko = "ServoNodeData", servo = "atomic_refcell::AtomicRefCell<crate::data::ElementData>" },
600    { generic = false, gecko = "mozilla::ServoWritingMode", servo = "crate::logical_geometry::WritingMode" },
601    { generic = false, gecko = "mozilla::ServoCustomPropertiesMap", servo = "Option<servo_arc::Arc<crate::custom_properties::CustomPropertiesMap>>" },
602    { generic = false, gecko = "mozilla::ServoRuleNode", servo = "Option<crate::rule_tree::StrongRuleNode>" },
603    { generic = false, gecko = "mozilla::ServoVisitedStyle", servo = "Option<servo_arc::RawOffsetArc<crate::properties::ComputedValues>>" },
604    { generic = true, gecko = "mozilla::ServoRawOffsetArc", servo = "servo_arc::RawOffsetArc" },
605    { generic = true, gecko = "mozilla::ServoManuallyDrop", servo = "::std::mem::ManuallyDrop" },
606    { generic = false, gecko = "nsACString", servo = "nsstring::nsACString" },
607    { generic = false, gecko = "nsAString", servo = "nsstring::nsAString" },
608    { generic = false, gecko = "nsCString", servo = "nsstring::nsCString" },
609    { generic = false, gecko = "nsString", servo = "nsstring::nsString" },
610]
611
612whitelist-functions = ["Servo_.*", "Gecko_.*"]
613