diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-05 19:36:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-05 19:36:05 +0000 |
commit | 08ed4c207f7f8688075c84e4b3cd5ab73470c246 (patch) | |
tree | 90f517c899a05a61c64fca95746505ed94539266 /render/box.h | |
parent | 027726c4324663f391f070a759b5c730fc04dfe7 (diff) | |
download | netsurf-08ed4c207f7f8688075c84e4b3cd5ab73470c246.tar.gz netsurf-08ed4c207f7f8688075c84e4b3cd5ab73470c246.tar.bz2 |
Update to new libcss API for simultanious selection for base element and its pseudo elements.
svn path=/trunk/netsurf/; revision=11215
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/render/box.h b/render/box.h index fd1dd5e8c..f8c85627b 100644 --- a/render/box.h +++ b/render/box.h @@ -133,7 +133,13 @@ struct box { /** Type of box. */ box_type type; - /** Style for this box. 0 for INLINE_CONTAINER and FLOAT_*. */ + /** Computed styles for elements and their pseudo elements. NULL on + * non-element boxes. */ + css_select_results *styles; + + /** Style for this box. 0 for INLINE_CONTAINER and FLOAT_*. Pointer into + * a box's 'styles' select results, except for implied boxes, where it + * is a pointer to an owned computed style. */ css_computed_style *style; /** Coordinate of left padding edge relative to parent box, or relative @@ -295,8 +301,8 @@ extern const char *TARGET_BLANK; #define UNKNOWN_MAX_WIDTH INT_MAX void *box_style_alloc(void *ptr, size_t len, void *pw); -struct box * box_create(css_computed_style *style, bool style_owned, - char *href, const char *target, char *title, +struct box * box_create(css_select_results *styles, css_computed_style *style, + bool style_owned, char *href, const char *target, char *title, char *id, void *context); void box_add_child(struct box *parent, struct box *child); void box_insert_sibling(struct box *box, struct box *new_box); |