From a3105d297fa8bb6bc8728d60a21b662d867688ae Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 4 Jul 2009 14:02:56 +0000 Subject: Ensure that any properties explicitly set to inherit on the root element are set to their initial values. svn path=/trunk/libcss/; revision=8309 --- src/select/select.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/select/select.h') diff --git a/src/select/select.h b/src/select/select.h index 1b3c702..320efd0 100644 --- a/src/select/select.h +++ b/src/select/select.h @@ -19,7 +19,8 @@ typedef struct prop_state { uint32_t specificity; /* Specificity of property in result */ uint32_t set : 1, /* Whether property is set in result */ origin : 2, /* Origin of property in result */ - important : 1; /* Importance of property in result */ + important : 1, /* Importance of property in result */ + inherit : 1; /* Property is set to inherit */ } prop_state; /** @@ -61,7 +62,8 @@ static inline void advance_bytecode(css_style *style, uint32_t n_bytes) style->bytecode = ((uint8_t *) style->bytecode) + n_bytes; } -bool outranks_existing(uint16_t op, bool important, css_select_state *state); +bool outranks_existing(uint16_t op, bool important, css_select_state *state, + bool inherit); #endif -- cgit v1.2.3