Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
After discussion, it seems that transparent_white() has undefined beh…
…avior.
  • Loading branch information
Adenilson committed Apr 22, 2015
1 parent 95bcc57 commit cf2406d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions components/gfx/color.rs
Expand Up @@ -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 }
}
2 changes: 1 addition & 1 deletion components/layout/display_list_builder.rs
Expand Up @@ -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),
Expand Down

0 comments on commit cf2406d

Please sign in to comment.