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