diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 19:22:12 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 19:22:12 +0000 |
commit | 5d27aa256fc1778695312fedf21f9489f8232448 (patch) | |
tree | 77b00a8f1ceda38a6cd7aacf0be4c8655101f357 /css/utils.h | |
parent | 27924aa38c0099ada9695530206c7a4633d03c81 (diff) | |
download | netsurf-5d27aa256fc1778695312fedf21f9489f8232448.tar.gz netsurf-5d27aa256fc1778695312fedf21f9489f8232448.tar.bz2 |
Port to latest libcss
svn path=/trunk/netsurf/; revision=11526
Diffstat (limited to 'css/utils.h')
-rw-r--r-- | css/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/css/utils.h b/css/utils.h index 11403b5da..9d40aba7b 100644 --- a/css/utils.h +++ b/css/utils.h @@ -39,6 +39,15 @@ extern css_fixed nscss_screen_dpi; ((color) & 0xff00) | \ (((color) & 0xff) << 16) +/** + * Determine if a CSS color primitive is transparent + * + * \param color The CSS color to consider + * \return True if the color is transparent, false otherwise + */ +#define nscss_color_is_transparent(color) \ + (((color) >> 24) == 0) + css_fixed nscss_len2pt(css_fixed length, css_unit unit); css_fixed nscss_len2px(css_fixed length, css_unit unit, const css_computed_style *style); |