From b5d55eb2951988880d586e20440dee03a532148f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 27 Jul 2009 13:49:10 +0000 Subject: Consider stylesheet media types svn path=/trunk/netsurf/; revision=8820 --- css/css.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'css/css.h') diff --git a/css/css.h b/css/css.h index e20d2dd9f..d65de15cf 100644 --- a/css/css.h +++ b/css/css.h @@ -19,9 +19,12 @@ #ifndef netsurf_css_css_h_ #define netsurf_css_css_h_ +#include + #include struct content; +struct nscss_import; /** * CSS content data @@ -33,7 +36,15 @@ struct content_css_data css_stylesheet *sheet; /**< Stylesheet object */ uint32_t import_count; /**< Number of sheets imported */ - struct content **imports; /**< Array of imported sheets */ + struct nscss_import *imports; /**< Array of imported sheets */ +}; + +/** + * Imported stylesheet record + */ +struct nscss_import { + struct content *c; /**< Content containing sheet */ + uint64_t media; /**< Media types that sheet applies to */ }; bool nscss_create(struct content *c, struct content *parent, -- cgit v1.2.3