diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-17 14:38:53 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-17 14:38:53 +0000 |
commit | 71cb70065e6819c26f101ff11e34c10383487b30 (patch) | |
tree | 6a4e2d6adb6bfbb029a93fa4c992613228a49e24 /render/box_construct.c | |
parent | b99357616cebe750e523f123701f284d7ac0037f (diff) | |
download | netsurf-71cb70065e6819c26f101ff11e34c10383487b30.tar.gz netsurf-71cb70065e6819c26f101ff11e34c10383487b30.tar.bz2 |
Gadgets can exisit outside forms, so now they store their own ref to the containing html content.
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index ce21b70f7..f5ef099b4 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2391,6 +2391,7 @@ bool box_input(BOX_SPECIAL_PARAMS) goto no_memory; box->gadget = gadget; gadget->box = box; + gadget->html = content; if (type && dom_string_caseless_lwc_isequal(type, corestring_lwc_password)) { @@ -2526,6 +2527,7 @@ bool box_button(BOX_SPECIAL_PARAMS) if (!gadget) return false; + gadget->html = content; box->gadget = gadget; gadget->box = box; @@ -2554,6 +2556,7 @@ bool box_select(BOX_SPECIAL_PARAMS) if (gadget == NULL) return false; + gadget->html = content; err = dom_node_get_first_child(n, &c); if (err != DOM_NO_ERR) return false; @@ -2761,6 +2764,7 @@ bool box_textarea(BOX_SPECIAL_PARAMS) if (box->gadget == NULL) return false; + box->gadget->html = content; box->gadget->box = box; if (!box_input_text(content, box, n)) |