DOM: Allocate all node strings when doing incremental rendering
commitb6b6d3c67e16da25565b4a3a9a76abf2fbc1bb3c
authorJonas Fonseca <fonseca@diku.dk>
Sat, 28 Jan 2006 03:48:12 +0000 (28 04:48 +0100)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sat, 28 Jan 2006 03:51:25 +0000 (28 04:51 +0100)
tree6c5123cae98a95f12d77741eb6b8895fb7cfeff3
parent24a9d103b4ee5ede577297bf49db93b83f8860a0
DOM: Allocate all node strings when doing incremental rendering

This changes init_dom_node_() to take an allocated argument saying whether
to allocate or not. If the value is -1, node->allocated will be set to the
value of node->parent->allocated. This way the value is inherited like we
do it in the menu code. It should be a sane default since we eventually
want not to rely on the 'underlying' source of the document and there will
be less variables to pass around.
src/dom/node.c
src/dom/node.h
src/dom/sgml/parser.c