summaryrefslogtreecommitdiff
path: root/src/select/select.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-11 17:16:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-11 17:16:43 +0000
commit95106ec57637a13990f644f2a0c574164ac9a20a (patch)
tree81f7d50267dca40c871b7956eecb60f96e44a5e0 /src/select/select.c
parent16666e0d1a9e5f444848f86fef8fc545f0298670 (diff)
downloadlibcss-95106ec57637a13990f644f2a0c574164ac9a20a.tar.gz
libcss-95106ec57637a13990f644f2a0c574164ac9a20a.tar.bz2
Something approximating font-family. This is hideous.
svn path=/trunk/libcss/; revision=6439
Diffstat (limited to 'src/select/select.c')
-rw-r--r--src/select/select.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 8eb04dc..04dff1f 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -53,6 +53,8 @@ typedef struct css_select_state {
css_select_handler *handler; /* Handler functions */
void *pw; /* Client data for handlers */
+ const css_stylesheet *sheet; /* Current sheet being processed */
+
css_origin current_origin; /* Origin of current sheet */
uint32_t current_specificity; /* Specificity of current rule */
@@ -477,6 +479,7 @@ css_error select_from_sheet(css_select_ctx *ctx, const css_stylesheet *sheet,
css_error error;
/* Process this sheet */
+ state->sheet = s;
state->current_origin = s->origin;
error = match_selectors_in_sheet(ctx, s, state);