diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-28 23:00:44 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-28 23:00:44 +0000 |
commit | 9e9c0cc7ffae7707734f99fe6693b03d2a78d28d (patch) | |
tree | f7e5d79b78ff1cf42bf1927abd6eab0eea73d879 /include | |
parent | 7509b9a098849dad73d598ab8d32dd8aed45ab61 (diff) | |
download | libcss-9e9c0cc7ffae7707734f99fe6693b03d2a78d28d.tar.gz libcss-9e9c0cc7ffae7707734f99fe6693b03d2a78d28d.tar.bz2 |
Stop leaking references to interned strings obtained from presentational hints
svn path=/trunk/libcss/; revision=10513
Diffstat (limited to 'include')
-rw-r--r-- | include/libcss/hint.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/libcss/hint.h b/include/libcss/hint.h index 7bee217..363534f 100644 --- a/include/libcss/hint.h +++ b/include/libcss/hint.h @@ -27,18 +27,7 @@ typedef struct css_hint_length { * Presentational hints */ typedef struct css_hint { - /* Objects pointed to by fields in this struct are copied for - * use in the computed style. Note that the copy occurs using - * memcpy, so if the object contains pointers itself, then the - * data pointed to by those pointers is *not* copied. - */ - - /* Computed styles are transient objects which provide a window onto - * the internal styling and do not reference the strings they point to. - * Thus, any strings passed in by the client through this struct will - * not be referenced either. Therefore, such strings must be guaranteed - * to persist for the life of the document. - */ + /* Ownership of all data is passed to libcss */ union { css_computed_clip_rect *clip; css_color color; |