mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Let resolve_color()
take its parameter by reference (#35247)
Bumps Stylo to https://github.com/servo/stylo/pull/116 This way the callers don't have to clone it if they don't have ownership or want to use the value later. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
7edbafb91b
commit
3122de08f3
9 changed files with 34 additions and 42 deletions
|
@ -741,7 +741,7 @@ impl ComputedValuesExt for ComputedValues {
|
|||
/// Whether or not this style specifies a non-transparent background.
|
||||
fn background_is_transparent(&self) -> bool {
|
||||
let background = self.get_background();
|
||||
let color = self.resolve_color(background.background_color.clone());
|
||||
let color = self.resolve_color(&background.background_color);
|
||||
color.alpha == 0.0 &&
|
||||
background
|
||||
.background_image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue