Renaming the color function to just *transparent*,

as suggested on review.
This commit is contained in:
Adenilson Cavalcanti 2015-04-22 14:51:39 -07:00
parent cf2406de47
commit 2c7edeb2bf
5 changed files with 7 additions and 7 deletions

View file

@ -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();