From 9e9c0cc7ffae7707734f99fe6693b03d2a78d28d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 28 Apr 2010 23:00:44 +0000 Subject: Stop leaking references to interned strings obtained from presentational hints svn path=/trunk/libcss/; revision=10513 --- include/libcss/hint.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'include') 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; -- cgit v1.2.3