diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-15 00:11:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-15 00:11:22 +0000 |
commit | 59cfdab5159981b97cd5b3b3cfd1d22f0600f5db (patch) | |
tree | 41abbe44f414987c13c5adf26a595c0609e7b2bd /include | |
parent | f1f3155ef6f28fb8595920e5423336b39bba4ed0 (diff) | |
download | libcss-59cfdab5159981b97cd5b3b3cfd1d22f0600f5db.tar.gz libcss-59cfdab5159981b97cd5b3b3cfd1d22f0600f5db.tar.bz2 |
Fix maths in commentary
svn path=/trunk/libcss/; revision=6518
Diffstat (limited to 'include')
-rw-r--r-- | include/libcss/computed.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h index e8ab3b5..b8ce5c2 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -183,7 +183,7 @@ struct css_computed_style { * Dimensions are encoded as a fixed point value + 4 bits of unit data * * background_color 2 4 - * background_image 1 sizeof(lwc_string) + * background_image 1 sizeof(ptr) * background_position 1 + 2(4) 2(4) * border_top_color 2 4 * border_right_color 2 4 @@ -201,7 +201,7 @@ struct css_computed_style { * font_size 4 + 4 4 * height 2 + 4 4 * line_height 2 + 4 4 - * list_style_image 1 sizeof(lwc_string) + * list_style_image 1 sizeof(ptr) * margin_top 2 + 4 4 * margin_right 2 + 4 4 * margin_bottom 2 + 4 4 @@ -219,7 +219,7 @@ struct css_computed_style { * width 2 + 4 4 * z_index 2 4 * --- --- - * 181 bits 140 + 2sizeof(lwc_string) bytes + * 181 bits 140 + 2sizeof(ptr) bytes * * Encode font family as an array of string objects, terminated with a * blank entry. @@ -229,13 +229,11 @@ struct css_computed_style { * 3 bits sizeof(ptr) * * ___ ___ - * 267 bits 140 + 2sizeof(lwc_string) + - * sizeof(ptr) bytes + * 267 bits 140 + 3sizeof(ptr) bytes * - * 34 bytes 140 + 2sizeof(lwc_string) + - * sizeof(ptr) bytes + * 34 bytes 140 + 3sizeof(ptr) bytes * =================== - * 174 + 2sizeof(lwc_string) + sizeof(ptr) bytes + * 174 + 3sizeof(ptr) bytes * * Bit allocations: * |