From 5d27aa256fc1778695312fedf21f9489f8232448 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 29 Jan 2011 19:22:12 +0000 Subject: Port to latest libcss svn path=/trunk/netsurf/; revision=11526 --- css/utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'css/utils.h') 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); -- cgit v1.2.3