mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Make the choice of layout runtime setting
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
f11c6045e3
commit
d31cdb682f
262 changed files with 1740 additions and 3700 deletions
|
@ -10,7 +10,7 @@ ${helpers.predefined_type(
|
|||
"color",
|
||||
"ColorPropertyValue",
|
||||
"::cssparser::RGBA::new(0, 0, 0, 255)",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="AnimatedRGBA",
|
||||
ignored_when_colors_disabled="True",
|
||||
spec="https://drafts.csswg.org/css-color/#color",
|
||||
|
@ -20,7 +20,7 @@ ${helpers.predefined_type(
|
|||
"line-height",
|
||||
"LineHeight",
|
||||
"computed::LineHeight::normal()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="LineHeight",
|
||||
spec="https://drafts.csswg.org/css2/visudet.html#propdef-line-height",
|
||||
servo_restyle_damage="reflow"
|
||||
|
@ -32,7 +32,8 @@ ${helpers.predefined_type(
|
|||
"text-transform",
|
||||
"TextTransform",
|
||||
"computed::TextTransform::none()",
|
||||
engines="gecko servo-2013",
|
||||
engines="gecko servo",
|
||||
servo_pref="layout.legacy_layout",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-transform",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -64,7 +65,7 @@ ${helpers.predefined_type(
|
|||
"text-indent",
|
||||
"LengthPercentage",
|
||||
"computed::LengthPercentage::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-indent",
|
||||
allow_quirks="Yes",
|
||||
|
@ -77,8 +78,8 @@ ${helpers.predefined_type(
|
|||
"overflow-wrap",
|
||||
"OverflowWrap",
|
||||
"computed::OverflowWrap::Normal",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
engines="gecko servo",
|
||||
servo_pref="layout.legacy_layout",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-overflow-wrap",
|
||||
aliases="word-wrap",
|
||||
|
@ -89,8 +90,8 @@ ${helpers.predefined_type(
|
|||
"word-break",
|
||||
"WordBreak",
|
||||
"computed::WordBreak::Normal",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
engines="gecko servo",
|
||||
servo_pref="layout.legacy_layout",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-word-break",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -100,8 +101,8 @@ ${helpers.predefined_type(
|
|||
"text-justify",
|
||||
"TextJustify",
|
||||
"computed::TextJustify::Auto",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
servo_2020_pref="layout.2020.unimplemented",
|
||||
engines="gecko servo",
|
||||
servo_pref="layout.legacy_layout",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-justify",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -121,7 +122,7 @@ ${helpers.predefined_type(
|
|||
"text-align",
|
||||
"TextAlign",
|
||||
"computed::TextAlign::Start",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-text-align",
|
||||
servo_restyle_damage = "reflow",
|
||||
|
@ -131,7 +132,7 @@ ${helpers.predefined_type(
|
|||
"letter-spacing",
|
||||
"LetterSpacing",
|
||||
"computed::LetterSpacing::normal()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-letter-spacing",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -141,7 +142,7 @@ ${helpers.predefined_type(
|
|||
"word-spacing",
|
||||
"WordSpacing",
|
||||
"computed::WordSpacing::zero()",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-word-spacing",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
|
@ -150,7 +151,7 @@ ${helpers.predefined_type(
|
|||
<%helpers:single_keyword
|
||||
name="white-space"
|
||||
values="normal pre nowrap pre-wrap pre-line"
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
extra_gecko_values="break-spaces -moz-pre-space"
|
||||
gecko_enum_prefix="StyleWhiteSpace"
|
||||
needs_conversion="True"
|
||||
|
@ -158,7 +159,7 @@ ${helpers.predefined_type(
|
|||
spec="https://drafts.csswg.org/css-text/#propdef-white-space"
|
||||
servo_restyle_damage="rebuild_and_reflow"
|
||||
>
|
||||
% if engine in ["servo-2013", "servo-2020"]:
|
||||
% if engine == "servo":
|
||||
impl SpecifiedValue {
|
||||
pub fn allow_wrap(&self) -> bool {
|
||||
match *self {
|
||||
|
@ -197,7 +198,8 @@ ${helpers.predefined_type(
|
|||
"text-shadow",
|
||||
"SimpleShadow",
|
||||
None,
|
||||
engines="gecko servo-2013",
|
||||
engines="gecko servo",
|
||||
servo_pref="layout.legacy_layout",
|
||||
vector=True,
|
||||
vector_animation_type="with_zero",
|
||||
animation_value_type="AnimatedTextShadowList",
|
||||
|
@ -325,7 +327,7 @@ ${helpers.single_keyword(
|
|||
${helpers.single_keyword(
|
||||
"text-rendering",
|
||||
"auto optimizespeed optimizelegibility geometricprecision",
|
||||
engines="gecko servo-2013 servo-2020",
|
||||
engines="gecko servo",
|
||||
gecko_enum_prefix="StyleTextRendering",
|
||||
animation_value_type="discrete",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#TextRenderingProperty",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue