diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-07-08 21:55:12 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2016-02-05 10:49:58 +0000 |
commit | e42afd9b3215e4711c68bc040bb5ceb1b8f17a44 (patch) | |
tree | bab07a4b69e6c618acfa8d72a26e48d84841280a /css/hints.h | |
parent | ae485432c544e555be74790c1a9f1ee50835eaad (diff) | |
download | netsurf-e42afd9b3215e4711c68bc040bb5ceb1b8f17a44.tar.gz netsurf-e42afd9b3215e4711c68bc040bb5ceb1b8f17a44.tar.bz2 |
Change hints handling to use new libcss API.
Collect hints and provide them up front.
Note this implementation is minimal effort, and quite inefficient.
We can be faster about it by walking the element's attributes, and
caching things set on ancestor elements which apply to the current
element. (Mostly table, and body stuff.)
Diffstat (limited to 'css/hints.h')
-rw-r--r-- | css/hints.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/css/hints.h b/css/hints.h index 68d4c1063..d2b07b578 100644 --- a/css/hints.h +++ b/css/hints.h @@ -23,7 +23,8 @@ #include "css/css.h" - +nserror css_hint_init(void); +void css_hint_fini(void); /** @@ -40,8 +41,8 @@ css_error node_presentational_hint( void *pw, void *node, - uint32_t property, - css_hint *hint); + uint32_t *nhints, + css_hint **hints); bool nscss_parse_colour(const char *data, css_color *result); |