mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 16:59:36 +03:00
HTML handler: Normalise box type on replacment.
We currently only do TABLE --> BLOCK normalisation.
This commit is contained in:
parent
110cc9fb3e
commit
790d30b788
@ -97,6 +97,16 @@ html_object_done(struct box *box,
|
||||
|
||||
box->object = object;
|
||||
|
||||
/* Normalise the box type, now it has been replaced. */
|
||||
switch (box->type) {
|
||||
case BOX_TABLE:
|
||||
box->type = BOX_BLOCK;
|
||||
break;
|
||||
default:
|
||||
/* TODO: Any other box types need mapping? */
|
||||
break;
|
||||
}
|
||||
|
||||
if (!(box->flags & REPLACE_DIM)) {
|
||||
/* invalidate parent min, max widths */
|
||||
for (b = box; b; b = b->parent)
|
||||
|
Loading…
Reference in New Issue
Block a user