From cf2406de47c9a65de484e9a5e6841f8f661cafdb Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Wed, 22 Apr 2015 14:42:14 -0700 Subject: [PATCH] After discussion, it seems that transparent_white() has undefined behavior. --- components/gfx/color.rs | 5 ----- components/layout/display_list_builder.rs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components/gfx/color.rs b/components/gfx/color.rs index f6fb0a7de3d..a91c6818ee6 100644 --- a/components/gfx/color.rs +++ b/components/gfx/color.rs @@ -39,8 +39,3 @@ pub fn transparent_black() -> AzColor { pub fn white() -> AzColor { AzColor { r: 1.0, g: 1.0, b: 1.0, a: 1.0 } } - -#[inline] -pub fn transparent_white() -> AzColor { - AzColor { r: 1.0, g: 1.0, b: 1.0, a: 0.0 } -} diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 7fcacac7713..d4eea71b183 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1318,7 +1318,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow { ScrollPolicy::Scrollable }; - let transparent = color::transparent_white(); + let transparent = color::transparent_black(); let stacking_context = self.create_stacking_context(display_list, Some(Arc::new(PaintLayer::new(self.layer_id(0),