summaryrefslogtreecommitdiff
path: root/render/box_normalise.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-02-25 16:37:48 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-02-25 16:37:48 +0000
commita4e1ffda1af5e1a7853ab1cd97d05e645d3786f8 (patch)
tree23dbe9e8bc66f20c5d3b4854dfd9b8b6be1f1a33 /render/box_normalise.c
parent11959f49f8591896b8bff3ca15beb1a395a6b112 (diff)
downloadnetsurf-a4e1ffda1af5e1a7853ab1cd97d05e645d3786f8.tar.gz
netsurf-a4e1ffda1af5e1a7853ab1cd97d05e645d3786f8.tar.bz2
Improve handling of HTML attributes / markup:
* Only apply presentational HTML attributes if no more important CSS has been set for the property. (NetSurf used to be a bit hit-and-miss when presentational markup and CSS were mixed.) * Change table cellpadding and border handling to happen as soon the boxes styles are available, rather than after the whole table has been constructed. Also fix default table border colour. * Improve handling of CENTER tag and ALIGN attribute. These could not be correctly supported in the default CSS file, so block level element alignment is now done during box construction. (Fixes #1891379, #1824492, #1723853) Form improvements: * Small MAXLENGTH values on text inputs now reduce element width. (Fixes #1894854) * Prevent select option text from wrapping. svn path=/trunk/netsurf/; revision=3866
Diffstat (limited to 'render/box_normalise.c')
-rw-r--r--render/box_normalise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render/box_normalise.c b/render/box_normalise.c
index ce00bad15..37474856f 100644
--- a/render/box_normalise.c
+++ b/render/box_normalise.c
@@ -141,7 +141,7 @@ bool box_normalise_block(struct box *block, struct content *c)
style = talloc_memdup(c, block->style, sizeof *style);
if (!style)
return false;
- css_cascade(style, &css_blank_style);
+ css_cascade(style, &css_blank_style, NULL);
table = box_create(style, block->href, block->target,
0, 0, c);
if (!table) {
@@ -225,7 +225,7 @@ bool box_normalise_table(struct box *table, struct content * c)
free(col_info.spans);
return false;
}
- css_cascade(style, &css_blank_style);
+ css_cascade(style, &css_blank_style, NULL);
row_group = box_create(style, table->href,
table->target, 0, 0, c);
if (!row_group) {
@@ -401,7 +401,7 @@ bool box_normalise_table_row_group(struct box *row_group,
sizeof *style);
if (!style)
return false;
- css_cascade(style, &css_blank_style);
+ css_cascade(style, &css_blank_style, NULL);
row = box_create(style, row_group->href,
row_group->target, 0, 0, c);
if (!row) {
@@ -501,7 +501,7 @@ bool box_normalise_table_row(struct box *row,
style = talloc_memdup(c, row->style, sizeof *style);
if (!style)
return false;
- css_cascade(style, &css_blank_style);
+ css_cascade(style, &css_blank_style, NULL);
cell = box_create(style, row->href, row->target, 0, 0,
c);
if (!cell) {