mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -1308,12 +1308,11 @@ fn get_root_flow_background_color(flow: &mut dyn Flow) -> ColorF {
|
|||
|
||||
let kid_block_flow = kid.as_block();
|
||||
let color = kid_block_flow.fragment.style.resolve_color(
|
||||
kid_block_flow
|
||||
&kid_block_flow
|
||||
.fragment
|
||||
.style
|
||||
.get_background()
|
||||
.background_color
|
||||
.clone(),
|
||||
.background_color,
|
||||
);
|
||||
color.to_layout()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue