Rename to_px to to_nearest_px for clarity.

This commit is contained in:
Jack Moffitt 2013-08-23 17:11:48 -06:00
parent a3d5ca35a0
commit 9f669c2989
5 changed files with 14 additions and 11 deletions

View file

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