mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -2188,7 +2188,7 @@ pub trait ToGfxColor {
|
|||
|
||||
impl ToGfxColor for RGBA {
|
||||
fn to_gfx_color(&self) -> ColorF {
|
||||
ColorF::new(self.red, self.green, self.blue, self.alpha)
|
||||
ColorF::new(self.red_f32(), self.green_f32(), self.blue_f32(), self.alpha_f32())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue