style: Fix servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-07-24 03:36:41 +02:00
parent 3a0c8fc760
commit 1716259a3a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 36 additions and 27 deletions

View file

@ -257,32 +257,41 @@ ${helpers.predefined_type(
)} )}
% else: % else:
// servo versions (no keyword support) // servo versions (no keyword support)
${helpers.predefined_type(size, ${helpers.predefined_type(
"LengthOrPercentageOrAuto", size,
"computed::LengthOrPercentageOrAuto::Auto", "LengthOrPercentageOrAuto",
"parse_non_negative", "computed::LengthOrPercentageOrAuto::Auto",
spec=spec % size, "parse_non_negative",
allow_quirks=not logical, spec=spec % size,
animation_value_type="ComputedValue", logical = logical, logical_group="size",
servo_restyle_damage = "reflow")} allow_quirks=not logical,
${helpers.predefined_type("min-%s" % size, animation_value_type="ComputedValue", logical = logical,
"LengthOrPercentage", servo_restyle_damage = "reflow",
"computed::LengthOrPercentage::Length(computed::Length::new(0.))", )}
"parse_non_negative", ${helpers.predefined_type(
spec=spec % ("min-%s" % size), "min-%s" % size,
animation_value_type="ComputedValue", "LengthOrPercentage",
logical=logical, "computed::LengthOrPercentage::Length(computed::Length::new(0.))",
allow_quirks=not logical, "parse_non_negative",
servo_restyle_damage = "reflow")} spec=spec % ("min-%s" % size),
${helpers.predefined_type("max-%s" % size, logical_group="min-size",
"LengthOrPercentageOrNone", animation_value_type="ComputedValue",
"computed::LengthOrPercentageOrNone::None", logical=logical,
"parse_non_negative", allow_quirks=not logical,
spec=spec % ("min-%s" % size), servo_restyle_damage = "reflow",
animation_value_type="ComputedValue", )}
logical=logical, ${helpers.predefined_type(
allow_quirks=not logical, "max-%s" % size,
servo_restyle_damage = "reflow")} "LengthOrPercentageOrNone",
"computed::LengthOrPercentageOrNone::None",
"parse_non_negative",
spec=spec % ("max-%s" % size),
logical_group="max-size",
animation_value_type="ComputedValue",
logical=logical,
allow_quirks=not logical,
servo_restyle_damage = "reflow",
)}
% endif % endif
% endfor % endfor

View file

@ -14,7 +14,7 @@ use element_state::{DocumentState, ElementState};
use fnv::FnvHashMap; use fnv::FnvHashMap;
use invalidation::element::document_state::InvalidationMatchingData; use invalidation::element::document_state::InvalidationMatchingData;
use invalidation::element::element_wrapper::ElementSnapshot; use invalidation::element::element_wrapper::ElementSnapshot;
use properties::{CascadeFlags, ComputedValues, PropertyFlags}; use properties::{ComputedValues, PropertyFlags};
use properties::longhands::display::computed_value::T as Display; use properties::longhands::display::computed_value::T as Display;
use selector_parser::{AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser}; use selector_parser::{AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser};
use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint}; use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint};