summaryrefslogtreecommitdiff
path: root/include/libcss
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-29 19:34:05 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-29 19:34:05 +0000
commitce769b3556c816e897341f5607055b921799bd1c (patch)
tree717b21e877fba833667fe5675ec8f65a5b473eb4 /include/libcss
parent0f8efbffeb3374db722f4e1c25d0fad373c60bd8 (diff)
downloadlibcss-ce769b3556c816e897341f5607055b921799bd1c.tar.gz
libcss-ce769b3556c816e897341f5607055b921799bd1c.tar.bz2
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
Diffstat (limited to 'include/libcss')
-rw-r--r--include/libcss/computed.h35
1 files changed, 24 insertions, 11 deletions
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;