Using the new transparent_black() in the proper places.

This commit is contained in:
Adenilson Cavalcanti 2015-02-03 18:08:30 -08:00
parent e1db06475c
commit ffa23088ff
3 changed files with 3 additions and 3 deletions

View file

@ -508,7 +508,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
epoch: Epoch(0), epoch: Epoch(0),
id: LayerId::null(), id: LayerId::null(),
rect: Rect::zero(), rect: Rect::zero(),
background_color: color::black(), background_color: color::transparent_black(),
scroll_policy: ScrollPolicy::Scrollable, scroll_policy: ScrollPolicy::Scrollable,
}; };

View file

@ -154,7 +154,7 @@ impl<'a> PaintContext<'a> {
} }
pub fn clear(&self) { pub fn clear(&self) {
let pattern = ColorPattern::new(color::black()); let pattern = ColorPattern::new(color::transparent_black());
let rect = Rect(Point2D(self.page_rect.origin.x as AzFloat, let rect = Rect(Point2D(self.page_rect.origin.x as AzFloat,
self.page_rect.origin.y as AzFloat), self.page_rect.origin.y as AzFloat),
Size2D(self.screen_rect.size.width as AzFloat, Size2D(self.screen_rect.size.width as AzFloat,

View file

@ -677,7 +677,7 @@ impl LayoutTask {
.to_gfx_color() .to_gfx_color()
}; };
let black = color::black(); let black = color::transparent_black();
// TODO: Use equality operators when we sync with rust-azure. // TODO: Use equality operators when we sync with rust-azure.
if element_bg_color.r != black.r || element_bg_color.g != black.g || if element_bg_color.r != black.r || element_bg_color.g != black.g ||
element_bg_color.b != black.b || element_bg_color.a != black.a { element_bg_color.b != black.b || element_bg_color.a != black.a {