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