mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 05:19:18 +03:00
Use can_reformat instead of HTML special case. Allow reflow of parent for any object that gets a reformat.
This commit is contained in:
parent
ddf45cd672
commit
bd3f65b7da
@ -1178,14 +1178,15 @@ html_object_callback(hlcache_handle *object,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CONTENT_MSG_READY:
|
case CONTENT_MSG_READY:
|
||||||
/* TODO: avoid knowledge of box internals here */
|
if (content_can_reformat(object)) {
|
||||||
content_reformat(object, false,
|
/* TODO: avoid knowledge of box internals here */
|
||||||
box->max_width != UNKNOWN_MAX_WIDTH ?
|
content_reformat(object, false,
|
||||||
box->width : 0,
|
box->max_width != UNKNOWN_MAX_WIDTH ?
|
||||||
box->max_width != UNKNOWN_MAX_WIDTH ?
|
box->width : 0,
|
||||||
box->height : 0);
|
box->max_width != UNKNOWN_MAX_WIDTH ?
|
||||||
|
box->height : 0);
|
||||||
|
|
||||||
if (content_get_type(object) == CONTENT_HTML) {
|
/* Adjust parent content for new object size */
|
||||||
html_object_done(box, object, o->background);
|
html_object_done(box, object, o->background);
|
||||||
if (c->base.status == CONTENT_STATUS_READY ||
|
if (c->base.status == CONTENT_STATUS_READY ||
|
||||||
c->base.status == CONTENT_STATUS_DONE)
|
c->base.status == CONTENT_STATUS_DONE)
|
||||||
|
Loading…
Reference in New Issue
Block a user