mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Animate offset-rotate.
Differential Revision: https://phabricator.services.mozilla.com/D32237
This commit is contained in:
parent
b34c27339b
commit
8a0cf600d6
2 changed files with 14 additions and 2 deletions
|
@ -390,7 +390,7 @@ ${helpers.predefined_type(
|
||||||
"OffsetRotate",
|
"OffsetRotate",
|
||||||
"computed::OffsetRotate::auto()",
|
"computed::OffsetRotate::auto()",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
animation_value_type="none",
|
animation_value_type="ComputedValue",
|
||||||
gecko_pref="layout.css.motion-path.enabled",
|
gecko_pref="layout.css.motion-path.enabled",
|
||||||
spec="https://drafts.fxtf.org/motion-1/#offset-rotate-property",
|
spec="https://drafts.fxtf.org/motion-1/#offset-rotate-property",
|
||||||
servo_restyle_damage="reflow_out_of_flow"
|
servo_restyle_damage="reflow_out_of_flow"
|
||||||
|
|
|
@ -18,13 +18,25 @@ fn is_auto_zero_angle(auto: &bool, angle: &Angle) -> bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A computed offset-rotate.
|
/// A computed offset-rotate.
|
||||||
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)]
|
#[derive(
|
||||||
|
Animate,
|
||||||
|
Clone,
|
||||||
|
ComputeSquaredDistance,
|
||||||
|
Copy,
|
||||||
|
Debug,
|
||||||
|
MallocSizeOf,
|
||||||
|
PartialEq,
|
||||||
|
ToAnimatedZero,
|
||||||
|
ToCss,
|
||||||
|
ToResolvedValue,
|
||||||
|
)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct OffsetRotate {
|
pub struct OffsetRotate {
|
||||||
/// If auto is false, this is a fixed angle which indicates a
|
/// If auto is false, this is a fixed angle which indicates a
|
||||||
/// constant clockwise rotation transformation applied to it by this
|
/// constant clockwise rotation transformation applied to it by this
|
||||||
/// specified rotation angle. Otherwise, the angle will be added to
|
/// specified rotation angle. Otherwise, the angle will be added to
|
||||||
/// the angle of the direction in layout.
|
/// the angle of the direction in layout.
|
||||||
|
#[animation(constant)]
|
||||||
#[css(represents_keyword)]
|
#[css(represents_keyword)]
|
||||||
pub auto: bool,
|
pub auto: bool,
|
||||||
/// The angle value.
|
/// The angle value.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue