mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Remove gfx_traits from the dependencies of [script].
This commit is contained in:
parent
f163f2bf0d
commit
3ae64fe739
5 changed files with 18 additions and 17 deletions
|
@ -70,7 +70,7 @@ pub enum Canvas2dMsg {
|
|||
SetShadowOffsetX(f64),
|
||||
SetShadowOffsetY(f64),
|
||||
SetShadowBlur(f64),
|
||||
SetShadowColor(AzColor),
|
||||
SetShadowColor(RGBA),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -455,3 +455,16 @@ impl CompositionOrBlending {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
pub trait ToAzColor {
|
||||
fn to_azcolor(&self) -> AzColor;
|
||||
}
|
||||
|
||||
impl ToAzColor for RGBA {
|
||||
fn to_azcolor(&self) -> AzColor {
|
||||
color::rgba(self.red as AzFloat,
|
||||
self.green as AzFloat,
|
||||
self.blue as AzFloat,
|
||||
self.alpha as AzFloat)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue