tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

effects.rs (1352B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
      4 
      5 //! Computed types for CSS values related to effects.
      6 
      7 use crate::values::computed::color::Color;
      8 use crate::values::computed::length::{Length, NonNegativeLength};
      9 #[cfg(feature = "gecko")]
     10 use crate::values::computed::url::ComputedUrl;
     11 use crate::values::computed::{Angle, Number};
     12 use crate::values::generics::effects::BoxShadow as GenericBoxShadow;
     13 use crate::values::generics::effects::Filter as GenericFilter;
     14 use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;
     15 #[cfg(not(feature = "gecko"))]
     16 use crate::values::Impossible;
     17 
     18 /// A computed value for a single shadow of the `box-shadow` property.
     19 pub type BoxShadow = GenericBoxShadow<Color, Length, NonNegativeLength, Length>;
     20 
     21 /// A computed value for a single `filter`.
     22 #[cfg(feature = "gecko")]
     23 pub type Filter = GenericFilter<Angle, Number, Length, SimpleShadow, ComputedUrl>;
     24 
     25 /// A computed value for a single `filter`.
     26 #[cfg(feature = "servo")]
     27 pub type Filter = GenericFilter<Angle, Number, Length, SimpleShadow, Impossible>;
     28 
     29 /// A computed value for the `drop-shadow()` filter.
     30 pub type SimpleShadow = GenericSimpleShadow<Color, Length, NonNegativeLength>;