Changeset View
Changeset View
Standalone View
Standalone View
www/firefox/files/patch-bug1533388
- This file was added.
commit acbe303e22f7 | |||||
Author: Emilio Cobos Álvarez <emilio@crisal.io> | |||||
Date: Thu Mar 7 17:00:36 2019 +0100 | |||||
Keep beta building with new cbindgen versions. | |||||
Trivial change, just replacing Self by the actual type. | |||||
--- | |||||
gfx/wr/webrender_api/src/color.rs | 12 ++++++------ | |||||
1 file changed, 6 insertions(+), 6 deletions(-) | |||||
diff --git gfx/wr/webrender_api/src/color.rs gfx/wr/webrender_api/src/color.rs | |||||
index abdacd711025..8fd829807116 100644 | |||||
--- gfx/wr/webrender_api/src/color.rs | |||||
+++ gfx/wr/webrender_api/src/color.rs | |||||
@@ -23,9 +23,9 @@ pub struct PremultipliedColorF { | |||||
#[allow(missing_docs)] | |||||
impl PremultipliedColorF { | |||||
- pub const BLACK: Self = PremultipliedColorF { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; | |||||
- pub const TRANSPARENT: Self = PremultipliedColorF { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }; | |||||
- pub const WHITE: Self = PremultipliedColorF { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }; | |||||
+ pub const BLACK: PremultipliedColorF = PremultipliedColorF { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; | |||||
+ pub const TRANSPARENT: PremultipliedColorF = PremultipliedColorF { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }; | |||||
+ pub const WHITE: PremultipliedColorF = PremultipliedColorF { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }; | |||||
pub fn to_array(&self) -> [f32; 4] { | |||||
[self.r, self.g, self.b, self.a] | |||||
@@ -47,9 +47,9 @@ pub struct ColorF { | |||||
#[allow(missing_docs)] | |||||
impl ColorF { | |||||
- pub const BLACK: Self = ColorF { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; | |||||
- pub const TRANSPARENT: Self = ColorF { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }; | |||||
- pub const WHITE: Self = ColorF { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }; | |||||
+ pub const BLACK: ColorF = ColorF { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }; | |||||
+ pub const TRANSPARENT: ColorF = ColorF { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }; | |||||
+ pub const WHITE: ColorF = ColorF { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }; | |||||
/// Constructs a new `ColorF` from its components. | |||||
pub fn new(r: f32, g: f32, b: f32, a: f32) -> Self { |