mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Make direction use an enum class.
Differential Revision: https://phabricator.services.mozilla.com/D60857
This commit is contained in:
parent
55f76be5e2
commit
3991ab9999
2 changed files with 3 additions and 2 deletions
|
@ -563,6 +563,7 @@
|
||||||
Copy,
|
Copy,
|
||||||
Debug,
|
Debug,
|
||||||
Eq,
|
Eq,
|
||||||
|
FromPrimitive,
|
||||||
Hash,
|
Hash,
|
||||||
MallocSizeOf,
|
MallocSizeOf,
|
||||||
Parse,
|
Parse,
|
||||||
|
@ -762,7 +763,7 @@
|
||||||
% endif
|
% endif
|
||||||
pub mod computed_value {
|
pub mod computed_value {
|
||||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
#[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:
|
% if not extra_specified:
|
||||||
#[derive(Parse, SpecifiedValueInfo, ToComputedValue, ToShmem)]
|
#[derive(Parse, SpecifiedValueInfo, ToComputedValue, ToShmem)]
|
||||||
% endif
|
% endif
|
||||||
|
|
|
@ -43,7 +43,7 @@ ${helpers.single_keyword(
|
||||||
servo_2020_pref="layout.2020.unimplemented",
|
servo_2020_pref="layout.2020.unimplemented",
|
||||||
animation_value_type="none",
|
animation_value_type="none",
|
||||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
|
spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
|
||||||
needs_conversion=True,
|
gecko_enum_prefix="StyleDirection",
|
||||||
servo_restyle_damage="rebuild_and_reflow",
|
servo_restyle_damage="rebuild_and_reflow",
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue