diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-01-13 00:14:53 +0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2018-01-12 10:17:37 -0800 |
commit | a061f2a89f4b733216e9d5b3c0dbc5dfa49fcc26 (patch) | |
tree | 95672cc175fa78aa0796e85a63d8c538f72324b2 | |
parent | 75f39b42abc88a2597186fe845d2deaa15bdb6da (diff) | |
download | servo-a061f2a89f4b733216e9d5b3c0dbc5dfa49fcc26.tar.gz servo-a061f2a89f4b733216e9d5b3c0dbc5dfa49fcc26.zip |
Use Python's True instead of string for arbitrary Python code in mako
7 files changed, 12 insertions, 12 deletions
diff --git a/components/style/properties/longhand/border.mako.rs b/components/style/properties/longhand/border.mako.rs index 505be70d012..11fdf30b983 100644 --- a/components/style/properties/longhand/border.mako.rs +++ b/components/style/properties/longhand/border.mako.rs @@ -210,7 +210,7 @@ ${helpers.predefined_type("border-image-source", "ImageLayer", vector=False, animation_value_type="discrete", flags="APPLIES_TO_FIRST_LETTER", - boxed="True")} + boxed=True)} ${helpers.predefined_type("border-image-outset", "LengthOrNumberRect", parse_method="parse_non_negative", diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 5a026ae0632..2810f5a513b 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -389,7 +389,7 @@ ${helpers.predefined_type("scroll-snap-destination", "computed::Position::zero()", products="gecko", 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)", animation_value_type="discrete")} @@ -505,7 +505,7 @@ ${helpers.predefined_type("perspective", ${helpers.predefined_type("perspective-origin", "position::Position", "computed::position::Position::center()", - boxed="True", + boxed=True, extra_prefixes="moz webkit", spec="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property", animation_value_type="ComputedValue")} @@ -589,7 +589,7 @@ ${helpers.single_keyword("-moz-appearance", ${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)", products="gecko", - boxed="True" if product == "gecko" else "False", + boxed= product == "gecko", animation_value_type="none", gecko_ffi_name="mBinding", spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding)")} diff --git a/components/style/properties/longhand/effects.mako.rs b/components/style/properties/longhand/effects.mako.rs index 1e9cb575f3f..98630f0ef6a 100644 --- a/components/style/properties/longhand/effects.mako.rs +++ b/components/style/properties/longhand/effects.mako.rs @@ -30,7 +30,7 @@ ${helpers.predefined_type("clip", "ClipRectOrAuto", "computed::ClipRectOrAuto::auto()", animation_value_type="ComputedValue", - boxed="True", + boxed=True, allow_quirks=True, spec="https://drafts.fxtf.org/css-masking/#clip-property")} diff --git a/components/style/properties/longhand/inherited_svg.mako.rs b/components/style/properties/longhand/inherited_svg.mako.rs index 11e39bd0917..909cce282fd 100644 --- a/components/style/properties/longhand/inherited_svg.mako.rs +++ b/components/style/properties/longhand/inherited_svg.mako.rs @@ -114,19 +114,19 @@ ${helpers.single_keyword("clip-rule", "nonzero evenodd", ${helpers.predefined_type("marker-start", "UrlOrNone", "Either::Second(None_)", products="gecko", - boxed="True" if product == "gecko" else "False", + boxed= product == "gecko", animation_value_type="discrete", spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")} ${helpers.predefined_type("marker-mid", "UrlOrNone", "Either::Second(None_)", products="gecko", - boxed="True" if product == "gecko" else "False", + boxed= product == "gecko", animation_value_type="discrete", spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")} ${helpers.predefined_type("marker-end", "UrlOrNone", "Either::Second(None_)", products="gecko", - boxed="True" if product == "gecko" else "False", + boxed= product == "gecko", animation_value_type="discrete", spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")} diff --git a/components/style/properties/longhand/inherited_table.mako.rs b/components/style/properties/longhand/inherited_table.mako.rs index 99363d082c2..3a1fe70021d 100644 --- a/components/style/properties/longhand/inherited_table.mako.rs +++ b/components/style/properties/longhand/inherited_table.mako.rs @@ -24,5 +24,5 @@ ${helpers.predefined_type("border-spacing", "BorderSpacing", "computed::BorderSpacing::zero()", animation_value_type="BorderSpacing", - boxed="True", + boxed=True, spec="https://drafts.csswg.org/css-tables/#propdef-border-spacing")} diff --git a/components/style/properties/longhand/list.mako.rs b/components/style/properties/longhand/list.mako.rs index bead5054b95..5819b2b8d02 100644 --- a/components/style/properties/longhand/list.mako.rs +++ b/components/style/properties/longhand/list.mako.rs @@ -35,7 +35,7 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu "computed::ListStyleType::disc()", initial_specified_value="specified::ListStyleType::disc()", animation_value_type="discrete", - boxed="True", + boxed=True, spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type")} % endif @@ -58,5 +58,5 @@ ${helpers.predefined_type("-moz-image-region", "computed::ClipRectOrAuto::auto()", animation_value_type="ComputedValue", products="gecko", - boxed="True", + boxed=True, spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)")} diff --git a/components/style/properties/longhand/position.mako.rs b/components/style/properties/longhand/position.mako.rs index 8d04c8eba8b..cb666a27f38 100644 --- a/components/style/properties/longhand/position.mako.rs +++ b/components/style/properties/longhand/position.mako.rs @@ -247,7 +247,7 @@ ${helpers.predefined_type("object-position", "Position", "computed::Position::zero()", products="gecko", - boxed="True", + boxed=True, spec="https://drafts.csswg.org/css-images-3/#the-object-position", animation_value_type="ComputedValue")} |