diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-08-04 14:59:13 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-08-04 14:59:13 +0100 |
commit | 2ea5ca5805326a07311745e9cdb39fb30215716f (patch) | |
tree | 277f446b699ab1e4ed73c8e73f987271994307ba | |
parent | a807d762f9bfd06c903ab220c68e021c8ae99d37 (diff) | |
download | netsurf-2ea5ca5805326a07311745e9cdb39fb30215716f.tar.gz netsurf-2ea5ca5805326a07311745e9cdb39fb30215716f.tar.bz2 |
Remove unwanted debug.
-rw-r--r-- | render/box.c | 3 | ||||
-rw-r--r-- | render/layout.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/render/box.c b/render/box.c index 494311994..0c71a96b4 100644 --- a/render/box.c +++ b/render/box.c @@ -446,8 +446,7 @@ struct box *box_at_point(struct box *box, const int x, const int y, int bx = *box_x, by = *box_y; struct box *child, *sibling; bool physically; -printf("x0:%i y0:%i x1:%i y1:%i\n", box->descendant_x0, box->descendant_y0, - box->descendant_y0, box->descendant_y1); + assert(box); /* consider floats first, since they will often overlap other boxes */ diff --git a/render/layout.c b/render/layout.c index e0f0a349d..ffea31d17 100644 --- a/render/layout.c +++ b/render/layout.c @@ -5068,7 +5068,6 @@ static void layout_get_box_bbox(struct box *box, int *desc_x0, int *desc_y0, css_computed_font_size(box->style, &font_size, &font_unit); text_height = nscss_len2px(font_size, font_unit, box->style); -printf("%i", text_height); *desc_y0 = (*desc_y0 < -text_height) ? *desc_y0 : -text_height; } } |