Skip to content

Commit

Permalink
style: Remove the GetCSNeedsLayoutFlush flag, as it is unneeded now.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 15, 2019
1 parent c6cdaaf commit 3ec38e2
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion components/style/properties/longhands/border.mako.rs
Expand Up @@ -58,7 +58,6 @@
animation_value_type="NonNegativeLength",
logical=is_logical,
logical_group="border-width",
flags="GETCS_NEEDS_LAYOUT_FLUSH",
allow_quirks="No" if is_logical else "Yes",
servo_restyle_damage="reflow rebuild_and_reflow_inline"
)}
Expand Down
5 changes: 1 addition & 4 deletions components/style/properties/longhands/box.mako.rs
Expand Up @@ -339,8 +339,7 @@ ${helpers.predefined_type(
servo_2020_pref="layout.2020.unimplemented",
extra_prefixes=transform_extra_prefixes,
animation_value_type="ComputedValue",
flags="CREATES_STACKING_CONTEXT FIXPOS_CB \
GETCS_NEEDS_LAYOUT_FLUSH CAN_ANIMATE_ON_COMPOSITOR",
flags="CREATES_STACKING_CONTEXT FIXPOS_CB CAN_ANIMATE_ON_COMPOSITOR",
spec="https://drafts.csswg.org/css-transforms/#propdef-transform",
servo_restyle_damage="reflow_out_of_flow",
)}
Expand Down Expand Up @@ -552,7 +551,6 @@ ${helpers.predefined_type(
boxed=True,
extra_prefixes=transform_extra_prefixes,
spec="https://drafts.csswg.org/css-transforms-2/#perspective-origin-property",
flags="GETCS_NEEDS_LAYOUT_FLUSH",
animation_value_type="ComputedValue",
servo_restyle_damage="reflow_out_of_flow"
)}
Expand Down Expand Up @@ -600,7 +598,6 @@ ${helpers.predefined_type(
extra_prefixes=transform_extra_prefixes,
gecko_ffi_name="mTransformOrigin",
boxed=True,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
spec="https://drafts.csswg.org/css-transforms/#transform-origin-property",
servo_restyle_damage="reflow_out_of_flow",
)}
Expand Down
Expand Up @@ -23,7 +23,6 @@ ${helpers.predefined_type(
engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.2020.unimplemented",
animation_value_type="LineHeight",
flags="GETCS_NEEDS_LAYOUT_FLUSH",
spec="https://drafts.csswg.org/css2/visudet.html#propdef-line-height",
servo_restyle_damage="reflow"
)}
Expand Down
1 change: 0 additions & 1 deletion components/style/properties/longhands/margin.mako.rs
Expand Up @@ -24,7 +24,6 @@
logical=side[1],
logical_group="margin",
spec=spec,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
allowed_in_page_rule=True,
servo_restyle_damage="reflow"
)}
Expand Down
1 change: 0 additions & 1 deletion components/style/properties/longhands/padding.mako.rs
Expand Up @@ -23,7 +23,6 @@
logical=side[1],
logical_group="padding",
spec=spec,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
allow_quirks="No" if side[1] else "Yes",
servo_restyle_damage="reflow rebuild_and_reflow_inline"
)}
Expand Down
4 changes: 0 additions & 4 deletions components/style/properties/longhands/position.mako.rs
Expand Up @@ -17,7 +17,6 @@
engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.2020.unimplemented",
spec="https://www.w3.org/TR/CSS2/visuren.html#propdef-%s" % side,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
animation_value_type="ComputedValue",
allow_quirks="Yes",
servo_restyle_damage="reflow_out_of_flow",
Expand All @@ -33,7 +32,6 @@
engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.2020.unimplemented",
spec="https://drafts.csswg.org/css-logical-props/#propdef-inset-%s" % side,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
alias="offset-%s:layout.css.offset-logical-properties.enabled" % side,
animation_value_type="ComputedValue",
logical=True,
Expand Down Expand Up @@ -285,7 +283,6 @@ ${helpers.predefined_type(
allow_quirks="No" if logical else "Yes",
spec=spec % size,
animation_value_type="Size",
flags="GETCS_NEEDS_LAYOUT_FLUSH",
servo_restyle_damage="reflow",
)}
// min-width, min-height, min-block-size, min-inline-size
Expand Down Expand Up @@ -379,7 +376,6 @@ ${helpers.predefined_type(
engines="gecko",
spec="https://drafts.csswg.org/css-grid/#propdef-grid-template-%ss" % kind,
boxed=True,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
animation_value_type="ComputedValue",
)}

Expand Down
2 changes: 0 additions & 2 deletions components/style/properties/longhands/ui.mako.rs
Expand Up @@ -80,7 +80,6 @@ ${helpers.predefined_type(
"Transform",
"generics::transform::Transform::none()",
engines="gecko",
flags="GETCS_NEEDS_LAYOUT_FLUSH",
animation_value_type="ComputedValue",
spec="None (Nonstandard internal property)",
enabled_in="chrome",
Expand All @@ -94,7 +93,6 @@ ${helpers.predefined_type(
animation_value_type="ComputedValue",
gecko_ffi_name="mWindowTransformOrigin",
boxed=True,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
spec="None (Nonstandard internal property)",
enabled_in="chrome",
)}
Expand Down
5 changes: 1 addition & 4 deletions components/style/properties/properties.mako.rs
Expand Up @@ -981,13 +981,10 @@ bitflags! {
const APPLIES_TO_CUE = 1 << 6;
/// This longhand property applies to ::marker.
const APPLIES_TO_MARKER = 1 << 7;
/// This property's getComputedStyle implementation requires layout
/// to be flushed.
const GETCS_NEEDS_LAYOUT_FLUSH = 1 << 8;
/// This property is a legacy shorthand.
///
/// https://drafts.csswg.org/css-cascade/#legacy-shorthand
const IS_LEGACY_SHORTHAND = 1 << 9;
const IS_LEGACY_SHORTHAND = 1 << 8;

/* The following flags are currently not used in Rust code, they
* only need to be listed in corresponding properties so that
Expand Down

0 comments on commit 3ec38e2

Please sign in to comment.