mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Implement ipdl reads without needing default ctors
Differential Revision: https://phabricator.services.mozilla.com/D149743
This commit is contained in:
parent
a55ae0ee90
commit
dc295dad31
5 changed files with 0 additions and 7 deletions
|
@ -21,7 +21,6 @@ use crate::parser::ParserContext;
|
||||||
)]
|
)]
|
||||||
#[value_info(ty = "TIMING_FUNCTION")]
|
#[value_info(ty = "TIMING_FUNCTION")]
|
||||||
#[repr(u8, C)]
|
#[repr(u8, C)]
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
pub enum TimingFunction<Integer, Number, LinearStops> {
|
pub enum TimingFunction<Integer, Number, LinearStops> {
|
||||||
/// `linear | ease | ease-in | ease-out | ease-in-out`
|
/// `linear | ease | ease-in | ease-out | ease-in-out`
|
||||||
Keyword(TimingKeyword),
|
Keyword(TimingKeyword),
|
||||||
|
|
|
@ -73,7 +73,6 @@ pub struct RayFunction<Angle> {
|
||||||
/// The offset-path value.
|
/// The offset-path value.
|
||||||
///
|
///
|
||||||
/// https://drafts.fxtf.org/motion-1/#offset-path-property
|
/// https://drafts.fxtf.org/motion-1/#offset-path-property
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
#[derive(
|
#[derive(
|
||||||
Animate,
|
Animate,
|
||||||
Clone,
|
Clone,
|
||||||
|
|
|
@ -67,7 +67,6 @@ pub trait PositionComponent {
|
||||||
/// A generic type for representing an `Auto | <position>`.
|
/// A generic type for representing an `Auto | <position>`.
|
||||||
/// This is used by <offset-anchor> for now.
|
/// This is used by <offset-anchor> for now.
|
||||||
/// https://drafts.fxtf.org/motion-1/#offset-anchor-property
|
/// https://drafts.fxtf.org/motion-1/#offset-anchor-property
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
#[derive(
|
#[derive(
|
||||||
Animate,
|
Animate,
|
||||||
Clone,
|
Clone,
|
||||||
|
|
|
@ -679,7 +679,6 @@ pub fn get_normalized_vector_and_angle<T: Zero>(
|
||||||
/// A value of the `Rotate` property
|
/// A value of the `Rotate` property
|
||||||
///
|
///
|
||||||
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
pub enum GenericRotate<Number, Angle> {
|
pub enum GenericRotate<Number, Angle> {
|
||||||
/// 'none'
|
/// 'none'
|
||||||
None,
|
None,
|
||||||
|
@ -772,7 +771,6 @@ where
|
||||||
/// A value of the `Scale` property
|
/// A value of the `Scale` property
|
||||||
///
|
///
|
||||||
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
pub enum GenericScale<Number> {
|
pub enum GenericScale<Number> {
|
||||||
/// 'none'
|
/// 'none'
|
||||||
None,
|
None,
|
||||||
|
@ -850,7 +848,6 @@ fn y_axis_and_z_axis_are_zero<LengthPercentage: Zero + ZeroNoPercent, Length: Ze
|
||||||
/// https://github.com/w3c/csswg-drafts/issues/3305
|
/// https://github.com/w3c/csswg-drafts/issues/3305
|
||||||
///
|
///
|
||||||
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
/// <https://drafts.csswg.org/css-transforms-2/#individual-transforms>
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
pub enum GenericTranslate<LengthPercentage, Length>
|
pub enum GenericTranslate<LengthPercentage, Length>
|
||||||
where
|
where
|
||||||
LengthPercentage: Zero + ZeroNoPercent,
|
LengthPercentage: Zero + ZeroNoPercent,
|
||||||
|
|
|
@ -779,7 +779,6 @@ fn is_default<T: Default + PartialEq>(value: &T) -> bool {
|
||||||
/// A value for the <single-animation-timeline>.
|
/// A value for the <single-animation-timeline>.
|
||||||
///
|
///
|
||||||
/// https://drafts.csswg.org/css-animations-2/#typedef-single-animation-timeline
|
/// https://drafts.csswg.org/css-animations-2/#typedef-single-animation-timeline
|
||||||
/// cbindgen:private-default-tagged-enum-constructor=false
|
|
||||||
#[derive(
|
#[derive(
|
||||||
Clone,
|
Clone,
|
||||||
Debug,
|
Debug,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue