aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/layout_task.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-08-23 17:15:30 -0700
committerbors-servo <release+servo@mozilla.com>2013-08-23 17:15:30 -0700
commit7492deae6dadade51ec41fe2b8f991e4bbddfd3b (patch)
tree683fc97b2ee81aef29f628329b5070545342f3e0 /src/components/main/layout/layout_task.rs
parentd70178da86985aa39dad0f688f78f3cc8513f586 (diff)
parent9f669c29893f884388346fc8cc912e670c176087 (diff)
downloadservo-7492deae6dadade51ec41fe2b8f991e4bbddfd3b.tar.gz
servo-7492deae6dadade51ec41fe2b8f991e4bbddfd3b.zip
auto merge of #774 : metajack/servo/au-rounding, r=pcwalton
This fixes too narrow boxes due to flooring computations. r? @pcwalton
Diffstat (limited to 'src/components/main/layout/layout_task.rs')
-rw-r--r--src/components/main/layout/layout_task.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs
index ee9ce45de6e..141df0e3f33 100644
--- a/src/components/main/layout/layout_task.rs
+++ b/src/components/main/layout/layout_task.rs
@@ -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());