mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Using the new transparent_black() in the proper places.
This commit is contained in:
parent
e1db06475c
commit
ffa23088ff
3 changed files with 3 additions and 3 deletions
|
@ -508,7 +508,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
epoch: Epoch(0),
|
||||
id: LayerId::null(),
|
||||
rect: Rect::zero(),
|
||||
background_color: color::black(),
|
||||
background_color: color::transparent_black(),
|
||||
scroll_policy: ScrollPolicy::Scrollable,
|
||||
};
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ impl<'a> PaintContext<'a> {
|
|||
}
|
||||
|
||||
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,
|
||||
self.page_rect.origin.y as AzFloat),
|
||||
Size2D(self.screen_rect.size.width as AzFloat,
|
||||
|
|
|
@ -677,7 +677,7 @@ impl LayoutTask {
|
|||
.to_gfx_color()
|
||||
};
|
||||
|
||||
let black = color::black();
|
||||
let black = color::transparent_black();
|
||||
// TODO: Use equality operators when we sync with rust-azure.
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue