mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -1226,16 +1226,16 @@ impl FragmentBorderBoxIterator for CollectingFragmentBorderBoxIterator {
|
|||
// transparent background color is handled correctly.
|
||||
fn get_root_flow_background_color(flow: &mut Flow) -> AzColor {
|
||||
if !flow.is_block_like() {
|
||||
return color::transparent_black()
|
||||
return color::transparent()
|
||||
}
|
||||
|
||||
let block_flow = flow.as_block();
|
||||
let kid = match block_flow.base.children.iter_mut().next() {
|
||||
None => return color::transparent_black(),
|
||||
None => return color::transparent(),
|
||||
Some(kid) => kid,
|
||||
};
|
||||
if !kid.is_block_like() {
|
||||
return color::transparent_black()
|
||||
return color::transparent()
|
||||
}
|
||||
|
||||
let kid_block_flow = kid.as_block();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue