style: Remove moz-prefixed aliases for column-gap and CSS multi-column properties.

Introduce a new pref "layout.css.prefixes.columns" to guard the prefixed
aliases.

The modification to `properties-db.js` was generated by
`./mach devtools-css-db`.

Differential Revision: https://phabricator.services.mozilla.com/D59564
This commit is contained in:
Ting-Yu Lin 2020-01-16 21:45:19 +00:00 committed by Emilio Cobos Álvarez
parent 9817ca386c
commit 5043695c78
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
3 changed files with 11 additions and 10 deletions

View file

@ -13,7 +13,7 @@ ${helpers.predefined_type(
engines="gecko servo-2013 servo-2020", engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.2020.unimplemented", servo_2020_pref="layout.2020.unimplemented",
initial_specified_value="specified::length::NonNegativeLengthOrAuto::auto()", initial_specified_value="specified::length::NonNegativeLengthOrAuto::auto()",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
animation_value_type="NonNegativeLengthOrAuto", animation_value_type="NonNegativeLengthOrAuto",
servo_2013_pref="layout.columns.enabled", servo_2013_pref="layout.columns.enabled",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-width", spec="https://drafts.csswg.org/css-multicol/#propdef-column-width",
@ -29,7 +29,7 @@ ${helpers.predefined_type(
initial_specified_value="specified::ColumnCount::auto()", initial_specified_value="specified::ColumnCount::auto()",
servo_2013_pref="layout.columns.enabled", servo_2013_pref="layout.columns.enabled",
animation_value_type="AnimatedColumnCount", animation_value_type="AnimatedColumnCount",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-count", spec="https://drafts.csswg.org/css-multicol/#propdef-column-count",
servo_restyle_damage="rebuild_and_reflow", servo_restyle_damage="rebuild_and_reflow",
)} )}
@ -38,7 +38,7 @@ ${helpers.single_keyword(
"column-fill", "column-fill",
"balance auto", "balance auto",
engines="gecko", engines="gecko",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
animation_value_type="discrete", animation_value_type="discrete",
gecko_enum_prefix="StyleColumnFill", gecko_enum_prefix="StyleColumnFill",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-fill", spec="https://drafts.csswg.org/css-multicol/#propdef-column-fill",
@ -53,7 +53,7 @@ ${helpers.predefined_type(
computed_type="crate::values::computed::NonNegativeLength", computed_type="crate::values::computed::NonNegativeLength",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-width", spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-width",
animation_value_type="NonNegativeLength", animation_value_type="NonNegativeLength",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
)} )}
// https://drafts.csswg.org/css-multicol-1/#crc // https://drafts.csswg.org/css-multicol-1/#crc
@ -64,7 +64,7 @@ ${helpers.predefined_type(
engines="gecko", engines="gecko",
initial_specified_value="specified::Color::currentcolor()", initial_specified_value="specified::Color::currentcolor()",
animation_value_type="AnimatedColor", animation_value_type="AnimatedColor",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
ignored_when_colors_disabled=True, ignored_when_colors_disabled=True,
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-color", spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-color",
)} )}
@ -76,7 +76,7 @@ ${helpers.single_keyword(
animation_value_type="discrete", animation_value_type="discrete",
gecko_enum_prefix="StyleColumnSpan", gecko_enum_prefix="StyleColumnSpan",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-span", spec="https://drafts.csswg.org/css-multicol/#propdef-column-span",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
)} )}
${helpers.predefined_type( ${helpers.predefined_type(
@ -86,7 +86,7 @@ ${helpers.predefined_type(
engines="gecko", engines="gecko",
needs_context=False, needs_context=False,
initial_specified_value="specified::BorderStyle::None", initial_specified_value="specified::BorderStyle::None",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
animation_value_type="discrete", animation_value_type="discrete",
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-style", spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-style",
)} )}

View file

@ -398,7 +398,7 @@ ${helpers.predefined_type(
"computed::length::NonNegativeLengthPercentageOrNormal::normal()", "computed::length::NonNegativeLengthPercentageOrNormal::normal()",
engines="gecko servo-2013", engines="gecko servo-2013",
alias="grid-column-gap" if engine == "gecko" else "", alias="grid-column-gap" if engine == "gecko" else "",
extra_prefixes="moz", extra_prefixes="moz:layout.css.prefixes.columns",
servo_2013_pref="layout.columns.enabled", servo_2013_pref="layout.columns.enabled",
spec="https://drafts.csswg.org/css-align-3/#propdef-column-gap", spec="https://drafts.csswg.org/css-align-3/#propdef-column-gap",
animation_value_type="NonNegativeLengthPercentageOrNormal", animation_value_type="NonNegativeLengthPercentageOrNormal",

View file

@ -9,7 +9,8 @@
sub_properties="column-width column-count" sub_properties="column-width column-count"
servo_2013_pref="layout.columns.enabled", servo_2013_pref="layout.columns.enabled",
derive_serialize="True" derive_serialize="True"
extra_prefixes="moz" spec="https://drafts.csswg.org/css-multicol/#propdef-columns"> extra_prefixes="moz:layout.css.prefixes.columns"
spec="https://drafts.csswg.org/css-multicol/#propdef-columns">
use crate::properties::longhands::{column_count, column_width}; use crate::properties::longhands::{column_count, column_width};
pub fn parse_value<'i, 't>( pub fn parse_value<'i, 't>(
@ -59,7 +60,7 @@
<%helpers:shorthand <%helpers:shorthand
name="column-rule" name="column-rule"
engines="gecko" engines="gecko"
extra_prefixes="moz" extra_prefixes="moz:layout.css.prefixes.columns"
sub_properties="column-rule-width column-rule-style column-rule-color" sub_properties="column-rule-width column-rule-style column-rule-color"
derive_serialize="True" derive_serialize="True"
spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule" spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule"