mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Use Python's True instead of string for arbitrary Python code in mako
This commit is contained in:
parent
75f39b42ab
commit
a061f2a89f
7 changed files with 12 additions and 12 deletions
|
@ -210,7 +210,7 @@ ${helpers.predefined_type("border-image-source", "ImageLayer",
|
||||||
vector=False,
|
vector=False,
|
||||||
animation_value_type="discrete",
|
animation_value_type="discrete",
|
||||||
flags="APPLIES_TO_FIRST_LETTER",
|
flags="APPLIES_TO_FIRST_LETTER",
|
||||||
boxed="True")}
|
boxed=True)}
|
||||||
|
|
||||||
${helpers.predefined_type("border-image-outset", "LengthOrNumberRect",
|
${helpers.predefined_type("border-image-outset", "LengthOrNumberRect",
|
||||||
parse_method="parse_non_negative",
|
parse_method="parse_non_negative",
|
||||||
|
|
|
@ -389,7 +389,7 @@ ${helpers.predefined_type("scroll-snap-destination",
|
||||||
"computed::Position::zero()",
|
"computed::Position::zero()",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
gecko_pref="layout.css.scroll-snap.enabled",
|
gecko_pref="layout.css.scroll-snap.enabled",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-destination)",
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-destination)",
|
||||||
animation_value_type="discrete")}
|
animation_value_type="discrete")}
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ ${helpers.predefined_type("perspective",
|
||||||
${helpers.predefined_type("perspective-origin",
|
${helpers.predefined_type("perspective-origin",
|
||||||
"position::Position",
|
"position::Position",
|
||||||
"computed::position::Position::center()",
|
"computed::position::Position::center()",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
extra_prefixes="moz webkit",
|
extra_prefixes="moz webkit",
|
||||||
spec="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property",
|
spec="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property",
|
||||||
animation_value_type="ComputedValue")}
|
animation_value_type="ComputedValue")}
|
||||||
|
@ -589,7 +589,7 @@ ${helpers.single_keyword("-moz-appearance",
|
||||||
|
|
||||||
${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)",
|
${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True" if product == "gecko" else "False",
|
boxed= product == "gecko",
|
||||||
animation_value_type="none",
|
animation_value_type="none",
|
||||||
gecko_ffi_name="mBinding",
|
gecko_ffi_name="mBinding",
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding)")}
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding)")}
|
||||||
|
|
|
@ -30,7 +30,7 @@ ${helpers.predefined_type("clip",
|
||||||
"ClipRectOrAuto",
|
"ClipRectOrAuto",
|
||||||
"computed::ClipRectOrAuto::auto()",
|
"computed::ClipRectOrAuto::auto()",
|
||||||
animation_value_type="ComputedValue",
|
animation_value_type="ComputedValue",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
allow_quirks=True,
|
allow_quirks=True,
|
||||||
spec="https://drafts.fxtf.org/css-masking/#clip-property")}
|
spec="https://drafts.fxtf.org/css-masking/#clip-property")}
|
||||||
|
|
||||||
|
|
|
@ -114,19 +114,19 @@ ${helpers.single_keyword("clip-rule", "nonzero evenodd",
|
||||||
|
|
||||||
${helpers.predefined_type("marker-start", "UrlOrNone", "Either::Second(None_)",
|
${helpers.predefined_type("marker-start", "UrlOrNone", "Either::Second(None_)",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True" if product == "gecko" else "False",
|
boxed= product == "gecko",
|
||||||
animation_value_type="discrete",
|
animation_value_type="discrete",
|
||||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||||
|
|
||||||
${helpers.predefined_type("marker-mid", "UrlOrNone", "Either::Second(None_)",
|
${helpers.predefined_type("marker-mid", "UrlOrNone", "Either::Second(None_)",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True" if product == "gecko" else "False",
|
boxed= product == "gecko",
|
||||||
animation_value_type="discrete",
|
animation_value_type="discrete",
|
||||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||||
|
|
||||||
${helpers.predefined_type("marker-end", "UrlOrNone", "Either::Second(None_)",
|
${helpers.predefined_type("marker-end", "UrlOrNone", "Either::Second(None_)",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True" if product == "gecko" else "False",
|
boxed= product == "gecko",
|
||||||
animation_value_type="discrete",
|
animation_value_type="discrete",
|
||||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||||
|
|
||||||
|
|
|
@ -24,5 +24,5 @@ ${helpers.predefined_type("border-spacing",
|
||||||
"BorderSpacing",
|
"BorderSpacing",
|
||||||
"computed::BorderSpacing::zero()",
|
"computed::BorderSpacing::zero()",
|
||||||
animation_value_type="BorderSpacing",
|
animation_value_type="BorderSpacing",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
spec="https://drafts.csswg.org/css-tables/#propdef-border-spacing")}
|
spec="https://drafts.csswg.org/css-tables/#propdef-border-spacing")}
|
||||||
|
|
|
@ -35,7 +35,7 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu
|
||||||
"computed::ListStyleType::disc()",
|
"computed::ListStyleType::disc()",
|
||||||
initial_specified_value="specified::ListStyleType::disc()",
|
initial_specified_value="specified::ListStyleType::disc()",
|
||||||
animation_value_type="discrete",
|
animation_value_type="discrete",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type")}
|
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type")}
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
|
@ -58,5 +58,5 @@ ${helpers.predefined_type("-moz-image-region",
|
||||||
"computed::ClipRectOrAuto::auto()",
|
"computed::ClipRectOrAuto::auto()",
|
||||||
animation_value_type="ComputedValue",
|
animation_value_type="ComputedValue",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)")}
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)")}
|
||||||
|
|
|
@ -247,7 +247,7 @@ ${helpers.predefined_type("object-position",
|
||||||
"Position",
|
"Position",
|
||||||
"computed::Position::zero()",
|
"computed::Position::zero()",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed="True",
|
boxed=True,
|
||||||
spec="https://drafts.csswg.org/css-images-3/#the-object-position",
|
spec="https://drafts.csswg.org/css-images-3/#the-object-position",
|
||||||
animation_value_type="ComputedValue")}
|
animation_value_type="ComputedValue")}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue