Refactor: use type alias instead of newtype

This commit is contained in:
hsinewu 2016-08-22 09:36:19 +08:00
parent ec7efff14b
commit ef9a690c9c
5 changed files with 17 additions and 55 deletions

View file

@ -520,9 +520,9 @@ impl FragmentDisplayListBuilding for Fragment {
};
// Use `background-position` to get the offset.
let horizontal_position = model::specified(background.background_position.0.horizontal,
let horizontal_position = model::specified(background.background_position.horizontal,
bounds.size.width - image_size.width);
let vertical_position = model::specified(background.background_position.0.vertical,
let vertical_position = model::specified(background.background_position.vertical,
bounds.size.height - image_size.height);
let abs_x = border.left + virtual_origin_x + horizontal_position + origin_x;