diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-07-26 22:29:15 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-07-26 22:29:15 +0000 |
commit | 5f6c2cbff7cd778b6487943d62e71ff9e7b04893 (patch) | |
tree | 2755ac7fd68397c47142e4ba030b8212e16862b2 /render | |
parent | aae686d90a3741293c6b3f2d15c7e2976b72adb9 (diff) | |
download | netsurf-5f6c2cbff7cd778b6487943d62e71ff9e7b04893.tar.gz netsurf-5f6c2cbff7cd778b6487943d62e71ff9e7b04893.tar.bz2 |
- Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.
svn path=/trunk/netsurf/; revision=4762
Diffstat (limited to 'render')
-rw-r--r-- | render/box.c | 1 | ||||
-rw-r--r-- | render/loosen.c | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/render/box.c b/render/box.c index e6495174e..d248f60d4 100644 --- a/render/box.c +++ b/render/box.c @@ -677,7 +677,6 @@ struct box* box_duplicate_tree(struct box *root, struct content *c) { struct box *new_root;/**< Root of the new box tree*/ int box_number = 0; - struct box *old_addr, *new_addr; struct box_dict_element *box_dict, *box_dict_end; /* 1. Duplicate parent - children structure, list_markers*/ diff --git a/render/loosen.c b/render/loosen.c index 5686d5a3b..a6f3053ff 100644 --- a/render/loosen.c +++ b/render/loosen.c @@ -23,6 +23,7 @@ #include "render/box.h" #include "render/font.h" +#include "render/loosen.h" #include "utils/log.h" #include "utils/talloc.h" @@ -174,11 +175,8 @@ bool loosen_text(struct box *text, int width, struct content *content) */ bool loosen_table(struct box *table, int width, struct content *content) { - struct box *row_group, *row, *cell, *br, *prev, *inline_container; - unsigned int row_sum; - bool first_cell_in_row; - + if (table->min_width <= width) return true; @@ -292,7 +290,6 @@ bool loosen_all_first_pass(struct box *box, int width, int cx, struct content *content) { struct box* c; - int got_width; int x; for (c = box->children; c ; c = c->next) { @@ -342,7 +339,6 @@ bool loosen_all_second_pass(struct box *box, int width, int cx, struct content *content) { struct box *c; - int got_width; int x; for (c = box->children; c; c = c->next) { @@ -378,7 +374,6 @@ bool loosen_all_third_pass(struct box *box, int width, int cx, struct content *content) { struct box *c; - int got_width; int x; for (c = box->children; c; c = c->next) { |