Skip to content

Commit

Permalink
Set restyle_damage = reflow for some more properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 9, 2018
1 parent 11fb2e6 commit daea6d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions components/style/properties/longhand/box.mako.rs
Expand Up @@ -174,6 +174,7 @@ ${helpers.predefined_type(
animation_value_type="ComputedValue",
flags="APPLIES_TO_FIRST_LETTER APPLIES_TO_FIRST_LINE APPLIES_TO_PLACEHOLDER",
spec="https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align",
servo_restyle_damage = "reflow"
)}

// CSS 2.1, Section 11 - Visual effects
Expand Down Expand Up @@ -210,12 +211,14 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
custom_consts=overflow_custom_consts,
gecko_constant_prefix="NS_STYLE_OVERFLOW",
flags="APPLIES_TO_PLACEHOLDER",
spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-x")}
spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-x",
servo_restyle_damage = "reflow")}

// FIXME(pcwalton, #2742): Implement scrolling for `scroll` and `auto`.
<%helpers:longhand name="overflow-y" animation_value_type="discrete"
flags="APPLIES_TO_PLACEHOLDER",
spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-y">
spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-y"
servo_restyle_damage = "reflow">
pub use super::overflow_x::{SpecifiedValue, parse, get_initial_value, computed_value};
</%helpers:longhand>

Expand Down
3 changes: 2 additions & 1 deletion components/style/properties/longhand/position.mako.rs
Expand Up @@ -285,7 +285,8 @@ ${helpers.single_keyword("box-sizing",
spec="https://drafts.csswg.org/css-ui/#propdef-box-sizing",
gecko_enum_prefix="StyleBoxSizing",
custom_consts={ "content-box": "Content", "border-box": "Border" },
animation_value_type="discrete")}
animation_value_type="discrete",
servo_restyle_damage = "reflow")}

${helpers.single_keyword("object-fit", "fill contain cover none scale-down",
products="gecko", animation_value_type="discrete",
Expand Down

0 comments on commit daea6d0

Please sign in to comment.