aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/layout/box.rs
diff options
context:
space:
mode:
authorBrian J. Burg <burg@cs.washington.edu>2012-10-24 13:52:14 -0700
committerBrian J. Burg <burg@cs.washington.edu>2012-10-24 15:34:04 -0700
commit91c7ca11b3b07178a6022a62af6958543fb0a9ab (patch)
treea9ca98db7298b86564d1ad0e2665fc267b7f85d8 /src/servo/layout/box.rs
parenta7c796aaf1982810751c5126cdae3373604dfc5f (diff)
downloadservo-91c7ca11b3b07178a6022a62af6958543fb0a9ab.tar.gz
servo-91c7ca11b3b07178a6022a62af6958543fb0a9ab.zip
Snap borders with odd pixel width to pixel boundaries.
Add debug bounding boxes for text boxes (RUST_LOG=servo::layout::box) and all boxes (RUST_LOG=servo::gfx::display_list).
Diffstat (limited to 'src/servo/layout/box.rs')
-rw-r--r--src/servo/layout/box.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/servo/layout/box.rs b/src/servo/layout/box.rs
index 61e5fdaf826..91ce6555483 100644
--- a/src/servo/layout/box.rs
+++ b/src/servo/layout/box.rs
@@ -420,7 +420,11 @@ impl RenderBox : RenderBoxMethods {
TextBox(_,d) => {
list.append_item(~DisplayItem::new_Text(&abs_box_bounds,
~d.run.serialize(builder.ctx.font_cache),
- d.range))
+ d.range));
+ // debug frames for text box bounds
+ debug!("%?", {
+ list.append_item(~DisplayItem::new_Border(&abs_box_bounds, au::from_px(1), 0, 0, 200))
+ ; ()});
},
// TODO: items for background, border, outline
GenericBox(_) => {