From ce769b3556c816e897341f5607055b921799bd1c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 29 Jan 2009 19:34:05 +0000 Subject: More maths. I have no idea if this approach is sane, btw. More importantly, I've no useful ideas as to how to represent content: svn path=/trunk/libcss/; revision=6291 --- include/libcss/computed.h | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/libcss/computed.h b/include/libcss/computed.h index 6ca8bc5..3d211e3 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -20,17 +20,30 @@ typedef struct css_computed_page { typedef struct css_computed_uncommon { /* - * border_spacing - * clip - * content - * counter_increment - * counter_reset - * cursor - * letter_spacing - * outline_color - * outline_width - * quotes - * word_spacing + * border_spacing 1 + 2(4) 2(4) + * clip 2 + 4(4) 4(4) + * counter_increment 1 4 + sizeof(ptr) + * counter_reset 1 4 + sizeof(ptr) + * letter_spacing 1 + 4 4 + * outline_color 1 4 + * outline_width 3 + 4 4 + * word_spacing 1 + 4 4 + * --- --- + * 47 bits 48 + 2sizeof(ptr) bytes + * + * quotes 1 sizeof(ptr) + * --- --- + * 1 bit sizeof(ptr) bytes + * + * content ? + * cursor ? + * + * ___ ___ + * 48 bits 48 + 3sizeof(ptr) bytes + * + * 6 bytes 48 + 3sizeof(ptr) bytes + * =================== + * 54 + 3sizeof(ptr) bytes */ } css_computed_uncommon; -- cgit v1.2.3