diff options
Diffstat (limited to 'src/parser/cr-stylesheet.h')
-rw-r--r-- | src/parser/cr-stylesheet.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/parser/cr-stylesheet.h b/src/parser/cr-stylesheet.h index a19c04c..3dca4e6 100644 --- a/src/parser/cr-stylesheet.h +++ b/src/parser/cr-stylesheet.h @@ -35,6 +35,22 @@ *The declaration of the #CRStyleSheet class. */ + +enum CRStyleOrigin +{ + /*Please don't change the order of + *the values enumerated here ... + *New values should be added at the end, + *just before ORIGIN_END. + */ + ORIGIN_UA = 0, + ORIGIN_USER, + ORIGIN_AUTHOR, + + /*must always be the last one*/ + NB_ORIGINS +} ; + /** *An abstraction of a css stylesheet as defined *by the css2 spec in chapter 4. @@ -44,6 +60,11 @@ struct _CRStyleSheet /**The css statements list*/ CRStatement *statements ; + enum CRStyleOrigin origin ; + + /*the parent import rule, if any.*/ + CRStatement *parent_import_rule ; + /**custom data used by libcroco*/ void *croco_data ; |