Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of LibCSS
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef css_select_dispatch_h_
  9. #define css_select_dispatch_h_
  10.  
  11. #include <stdint.h>
  12.  
  13. #include <libcss/errors.h>
  14. #include <libcss/computed.h>
  15.  
  16. #include "stylesheet.h"
  17. #include "bytecode/bytecode.h"
  18. #include "select/select.h"
  19.  
  20. /**
  21.  * Enumeration of property groups
  22.  */
  23. enum prop_group {
  24.         GROUP_NORMAL    = 0x0,
  25.         GROUP_UNCOMMON  = 0x1,
  26.         GROUP_PAGE      = 0x2,
  27.         GROUP_AURAL     = 0x3
  28. };
  29.  
  30. extern struct prop_table {
  31.         css_error (*cascade)(uint32_t opv, css_style *style,
  32.                         css_select_state *state);
  33.         css_error (*set_from_hint)(const css_hint *hint,
  34.                         css_computed_style *style);
  35.         css_error (*initial)(css_select_state *state);
  36.         css_error (*compose)(const css_computed_style *parent,
  37.                         const css_computed_style *child,
  38.                         css_computed_style *result);
  39.         unsigned int inherited;
  40.         unsigned int group;
  41. } prop_dispatch[CSS_N_PROPERTIES];
  42.  
  43. #endif
  44.