Skip to content
Permalink
Browse files

style: Animate offset-rotate.

  • Loading branch information...
BorisChiou authored and emilio committed May 28, 2019
1 parent b34c273 commit 8a0cf600d6cc426ad95ba05d435c5d2ffb4c14b7
Showing with 14 additions and 2 deletions.
  1. +1 −1 components/style/properties/longhands/box.mako.rs
  2. +13 −1 components/style/values/computed/motion.rs
@@ -390,7 +390,7 @@ ${helpers.predefined_type(
"OffsetRotate",
"computed::OffsetRotate::auto()",
products="gecko",
animation_value_type="none",
animation_value_type="ComputedValue",
gecko_pref="layout.css.motion-path.enabled",
spec="https://drafts.fxtf.org/motion-1/#offset-rotate-property",
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.
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)]
#[derive(
Animate,
Clone,
ComputeSquaredDistance,
Copy,
Debug,
MallocSizeOf,
PartialEq,
ToAnimatedZero,
ToCss,
ToResolvedValue,
)]
#[repr(C)]
pub struct OffsetRotate {
/// If auto is false, this is a fixed angle which indicates a
/// constant clockwise rotation transformation applied to it by this
/// specified rotation angle. Otherwise, the angle will be added to
/// the angle of the direction in layout.
#[animation(constant)]
#[css(represents_keyword)]
pub auto: bool,
/// The angle value.

0 comments on commit 8a0cf60

Please sign in to comment.
You can’t perform that action at this time.