diff options
author | James Bursa <james@netsurf-browser.org> | 2005-08-20 22:52:20 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-08-20 22:52:20 +0000 |
commit | 8afd957986ade6208ec315fcac410a290e40b68b (patch) | |
tree | b963490b452c9d35b633a6601a406c36aca24e62 /render/box.h | |
parent | 123fd6b94e170b2d44a935fab072f164fd793465 (diff) | |
download | netsurf-8afd957986ade6208ec315fcac410a290e40b68b.tar.gz netsurf-8afd957986ade6208ec315fcac410a290e40b68b.tar.bz2 |
[project @ 2005-08-20 22:52:20 by bursa]
Work towards implementing link target frames: add target attribute to struct box, add frame to struct content_html_object and html_fetch_object().
svn path=/import/netsurf/; revision=1849
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/render/box.h b/render/box.h index 405683fe7..05d74cfe2 100644 --- a/render/box.h +++ b/render/box.h @@ -159,6 +159,7 @@ struct box { unsigned int clone : 1; char *href; /**< Link, or 0. */ + const char *target; /**< Link target, or 0. */ char *title; /**< Title, or 0. */ unsigned int columns; /**< Number of columns for TABLE / TABLE_CELL. */ @@ -233,6 +234,12 @@ struct object_param { struct object_param *next; }; +/** Frame target names (constant pointers to save duplicating the strings many + * times). We convert _blank to _top for user-friendliness. */ +extern const char *TARGET_SELF; +extern const char *TARGET_PARENT; +extern const char *TARGET_TOP; + #define UNKNOWN_WIDTH INT_MAX #define UNKNOWN_MAX_WIDTH INT_MAX |