diff options
author | Delan Azabani <dazabani@igalia.com> | 2024-02-27 23:39:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 15:39:06 +0000 |
commit | faf754dfa655f0b9a28f62bc47a78fbf78ebcaf4 (patch) | |
tree | 4725e1446680d036797b1fc258733ae6b2c9f354 /components/style/values/generics/background.rs | |
parent | b07505417e629bbb081be9683630f2d7a5f50544 (diff) | |
download | servo-faf754dfa655f0b9a28f62bc47a78fbf78ebcaf4.tar.gz servo-faf754dfa655f0b9a28f62bc47a78fbf78ebcaf4.zip |
Move Stylo to its own repo (#31350)
* Remove packages that were moved to external repo
* Add workspace dependencies pointing to 2023-06-14 branch
* Fix servo-tidy.toml errors
* Update commit to include #31346
* Update commit to include servo/stylo#2
* Move css-properties.json lookup to target/doc/stylo
* Remove dependency on vendored mako in favour of pypi dependency
This also removes etc/ci/generate_workflow.py, which has been unused
since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f.
* Add temporary code to debug Windows test failures
* Fix failures on Windows due to custom target dir
* Update commit to include servo/stylo#3
* Fix license in tests/unit/style/build.rs
* Document how to build with local Stylo in Cargo.toml
Diffstat (limited to 'components/style/values/generics/background.rs')
-rw-r--r-- | components/style/values/generics/background.rs | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/components/style/values/generics/background.rs b/components/style/values/generics/background.rs deleted file mode 100644 index d9b6624595d..00000000000 --- a/components/style/values/generics/background.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -//! Generic types for CSS values related to backgrounds. - -use crate::values::generics::length::{GenericLengthPercentageOrAuto, LengthPercentageOrAuto}; - -/// A generic value for the `background-size` property. -#[derive( - Animate, - Clone, - ComputeSquaredDistance, - Copy, - Debug, - MallocSizeOf, - PartialEq, - SpecifiedValueInfo, - ToAnimatedValue, - ToAnimatedZero, - ToComputedValue, - ToCss, - ToResolvedValue, - ToShmem, -)] -#[repr(C, u8)] -pub enum GenericBackgroundSize<LengthPercent> { - /// `<width> <height>` - ExplicitSize { - /// Explicit width. - width: GenericLengthPercentageOrAuto<LengthPercent>, - /// Explicit height. - #[css(skip_if = "GenericLengthPercentageOrAuto::is_auto")] - height: GenericLengthPercentageOrAuto<LengthPercent>, - }, - /// `cover` - #[animation(error)] - Cover, - /// `contain` - #[animation(error)] - Contain, -} - -pub use self::GenericBackgroundSize as BackgroundSize; - -impl<LengthPercentage> BackgroundSize<LengthPercentage> { - /// Returns `auto auto`. - pub fn auto() -> Self { - GenericBackgroundSize::ExplicitSize { - width: LengthPercentageOrAuto::Auto, - height: LengthPercentageOrAuto::Auto, - } - } -} |