Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/790d30b7888d5818a4e2521aabe2f31f04d59341
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/790d30b7888d5818a4e2521aabe2f31f04d59341
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/790d30b7888d5818a4e2521aabe2f31f04d59341

The branch, master has been updated
       via  790d30b7888d5818a4e2521aabe2f31f04d59341 (commit)
      from  110cc9fb3e098100a7ed91340a82e351a220bce1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=790d30b7888d5818a4e2521aabe2f31f04d59341
commit 790d30b7888d5818a4e2521aabe2f31f04d59341
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    HTML handler: Normalise box type on replacment.
    
    We currently only do TABLE --> BLOCK normalisation.

diff --git a/render/html_object.c b/render/html_object.c
index fb9e7b0..74e4bf0 100644
--- a/render/html_object.c
+++ b/render/html_object.c
@@ -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)


-----------------------------------------------------------------------

Summary of changes:
 render/html_object.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/render/html_object.c b/render/html_object.c
index fb9e7b0..74e4bf0 100644
--- a/render/html_object.c
+++ b/render/html_object.c
@@ -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)


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to