mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
style: Rename CaretColor to ColorOrAuto for reusing.
Bug: 1460456 Reviewed-by: heycam MozReview-Commit-ID: LD6PlNI60GC
This commit is contained in:
parent
4e6b100c7e
commit
1b236bf620
7 changed files with 19 additions and 45 deletions
|
@ -8,17 +8,6 @@ use std::fmt::{self, Write};
|
|||
use style_traits::{CssWriter, ToCss};
|
||||
use style_traits::cursor::CursorKind;
|
||||
|
||||
/// A generic value for the `caret-color` property.
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, Debug, MallocSizeOf,
|
||||
PartialEq, SpecifiedValueInfo, ToAnimatedValue, ToAnimatedZero,
|
||||
ToComputedValue, ToCss)]
|
||||
pub enum CaretColor<Color> {
|
||||
/// An explicit color.
|
||||
Color(Color),
|
||||
/// The keyword `auto`.
|
||||
Auto,
|
||||
}
|
||||
|
||||
/// A generic value for the `cursor` property.
|
||||
///
|
||||
/// https://drafts.csswg.org/css-ui/#cursor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue