Gitweb links:

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

The branch, master has been updated
       via  ebcc27c330654d4408bd3aec34795f849c07e02f (commit)
      from  4b76d2096d4622fed8641b24f9dfe4ce782e307e (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=ebcc27c330654d4408bd3aec34795f849c07e02f
commit ebcc27c330654d4408bd3aec34795f849c07e02f
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Box tree dump: If box has element, include element name in dump.

diff --git a/render/box.c b/render/box.c
index 11a24e7..77cc15b 100644
--- a/render/box.c
+++ b/render/box.c
@@ -1048,7 +1048,7 @@ void box_dump(FILE *stream, struct box *box, unsigned int 
depth, bool style)
        if (box->title)
                fprintf(stream, " [%s]", box->title);
        if (box->id)
-               fprintf(stream, " <%s>", lwc_string_data(box->id));
+               fprintf(stream, " ID:%s", lwc_string_data(box->id));
        if (box->type == BOX_INLINE || box->type == BOX_INLINE_END)
                fprintf(stream, " inline_end %p", box->inline_end);
        if (box->float_children)
@@ -1071,6 +1071,13 @@ void box_dump(FILE *stream, struct box *box, unsigned 
int depth, bool style)
                                        box->col[i].min, box->col[i].max);
                fprintf(stream, ")");
        }
+       if (box->node != NULL) {
+               dom_string *name;
+               if (dom_node_get_node_name(box->node, &name) == DOM_NO_ERR) {
+                       fprintf(stream, " <%s>", dom_string_data(name));
+                       dom_string_unref(name);
+               }
+       }
        fprintf(stream, "\n");
 
        if (box->list_marker) {


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

Summary of changes:
 render/box.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/render/box.c b/render/box.c
index 11a24e7..77cc15b 100644
--- a/render/box.c
+++ b/render/box.c
@@ -1048,7 +1048,7 @@ void box_dump(FILE *stream, struct box *box, unsigned int 
depth, bool style)
        if (box->title)
                fprintf(stream, " [%s]", box->title);
        if (box->id)
-               fprintf(stream, " <%s>", lwc_string_data(box->id));
+               fprintf(stream, " ID:%s", lwc_string_data(box->id));
        if (box->type == BOX_INLINE || box->type == BOX_INLINE_END)
                fprintf(stream, " inline_end %p", box->inline_end);
        if (box->float_children)
@@ -1071,6 +1071,13 @@ void box_dump(FILE *stream, struct box *box, unsigned 
int depth, bool style)
                                        box->col[i].min, box->col[i].max);
                fprintf(stream, ")");
        }
+       if (box->node != NULL) {
+               dom_string *name;
+               if (dom_node_get_node_name(box->node, &name) == DOM_NO_ERR) {
+                       fprintf(stream, " <%s>", dom_string_data(name));
+                       dom_string_unref(name);
+               }
+       }
        fprintf(stream, "\n");
 
        if (box->list_marker) {


-- 
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