mirror of
https://github.com/servo/servo.git
synced 2025-07-14 10:53:42 +01:00
Rename to_px to to_nearest_px for clarity.
This commit is contained in:
parent
a3d5ca35a0
commit
9f669c2989
5 changed files with 14 additions and 11 deletions
|
@ -348,7 +348,8 @@ impl LayoutTask {
|
|||
|
||||
let render_layer = RenderLayer {
|
||||
display_list: display_list.clone(),
|
||||
size: Size2D(root_size.width.to_px() as uint, root_size.height.to_px() as uint)
|
||||
size: Size2D(root_size.width.to_nearest_px() as uint,
|
||||
root_size.height.to_nearest_px() as uint)
|
||||
};
|
||||
|
||||
self.display_list = Some(display_list.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue