Skip to content

Commit

Permalink
style: Make direction use an enum class.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Feb 12, 2020
1 parent 55f76be commit 3991ab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/style/properties/helpers.mako.rs
Expand Up @@ -563,6 +563,7 @@
Copy,
Debug,
Eq,
FromPrimitive,
Hash,
MallocSizeOf,
Parse,
Expand Down Expand Up @@ -762,7 +763,7 @@
% endif
pub mod computed_value {
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)]
#[derive(Clone, Copy, Debug, Eq, FromPrimitive, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)]
% if not extra_specified:
#[derive(Parse, SpecifiedValueInfo, ToComputedValue, ToShmem)]
% endif
Expand Down
Expand Up @@ -43,7 +43,7 @@ ${helpers.single_keyword(
servo_2020_pref="layout.2020.unimplemented",
animation_value_type="none",
spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
needs_conversion=True,
gecko_enum_prefix="StyleDirection",
servo_restyle_damage="rebuild_and_reflow",
)}

Expand Down

0 comments on commit 3991ab9

Please sign in to comment.