mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Renaming the color function to just *transparent*,
as suggested on review.
This commit is contained in:
parent
cf2406de47
commit
2c7edeb2bf
5 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ pub fn black() -> AzColor {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn transparent_black() -> AzColor {
|
||||
pub fn transparent() -> AzColor {
|
||||
AzColor { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }
|
||||
}
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ impl<'a> PaintContext<'a> {
|
|||
}
|
||||
|
||||
pub fn clear(&self) {
|
||||
let pattern = ColorPattern::new(color::transparent_black());
|
||||
let pattern = ColorPattern::new(color::transparent());
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue