Move Position into its own values module

This commit is contained in:
Manish Goregaokar 2016-08-01 15:22:04 +05:30
parent 88c1a67d89
commit 44e33bcdc5
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
8 changed files with 215 additions and 134 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.horizontal,
let horizontal_position = model::specified(background.background_position.0.horizontal,
bounds.size.width - image_size.width);
let vertical_position = model::specified(background.background_position.vertical,
let vertical_position = model::specified(background.background_position.0.vertical,
bounds.size.height - image_size.height);
let abs_x = border.left + virtual_origin_x + horizontal_position + origin_x;