mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
style: Unbox a bunch of color properties.
This builds on https://github.com/servo/rust-cssparser/pull/118.
This commit is contained in:
parent
e394334739
commit
0c102e2350
37 changed files with 185 additions and 195 deletions
|
@ -57,7 +57,7 @@ impl CanvasGradientMethods for CanvasGradient {
|
|||
let color = if parser.is_exhausted() {
|
||||
match color {
|
||||
Ok(CSSColor::RGBA(rgba)) => rgba,
|
||||
Ok(CSSColor::CurrentColor) => RGBA { red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0 },
|
||||
Ok(CSSColor::CurrentColor) => RGBA::new(0, 0, 0, 255),
|
||||
_ => return Err(Error::Syntax)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue