mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
After discussion, it seems that transparent_white() has undefined behavior.
This commit is contained in:
parent
95bcc5747c
commit
cf2406de47
2 changed files with 1 additions and 6 deletions
|
@ -39,8 +39,3 @@ pub fn transparent_black() -> AzColor {
|
||||||
pub fn white() -> AzColor {
|
pub fn white() -> AzColor {
|
||||||
AzColor { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }
|
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 }
|
|
||||||
}
|
|
||||||
|
|
|
@ -1318,7 +1318,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
|
||||||
ScrollPolicy::Scrollable
|
ScrollPolicy::Scrollable
|
||||||
};
|
};
|
||||||
|
|
||||||
let transparent = color::transparent_white();
|
let transparent = color::transparent_black();
|
||||||
let stacking_context =
|
let stacking_context =
|
||||||
self.create_stacking_context(display_list,
|
self.create_stacking_context(display_list,
|
||||||
Some(Arc::new(PaintLayer::new(self.layer_id(0),
|
Some(Arc::new(PaintLayer::new(self.layer_id(0),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue