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 2012 Michael Drake <tlsa@netsurf-browser.org>
  6.  */
  7.  
  8. #include "bytecode/bytecode.h"
  9. #include "bytecode/opcodes.h"
  10. #include "select/propset.h"
  11. #include "select/propget.h"
  12. #include "utils/utils.h"
  13.  
  14. #include "select/properties/properties.h"
  15. #include "select/properties/helpers.h"
  16.  
  17. css_error css__cascade_column_rule_style(uint32_t opv, css_style *style,
  18.                 css_select_state *state)
  19. {
  20.         UNUSED(style);
  21.  
  22.         if (isInherit(opv) == false) {
  23.                 switch (getValue(opv)) {
  24.                 case COLUMN_RULE_STYLE_NONE:
  25.                 case COLUMN_RULE_STYLE_HIDDEN:
  26.                 case COLUMN_RULE_STYLE_DOTTED:
  27.                 case COLUMN_RULE_STYLE_DASHED:
  28.                 case COLUMN_RULE_STYLE_SOLID:
  29.                 case COLUMN_RULE_STYLE_DOUBLE:
  30.                 case COLUMN_RULE_STYLE_GROOVE:
  31.                 case COLUMN_RULE_STYLE_RIDGE:
  32.                 case COLUMN_RULE_STYLE_INSET:
  33.                 case COLUMN_RULE_STYLE_OUTSET:
  34.                         /** \todo convert to public values */
  35.                         break;
  36.                 }
  37.         }
  38.  
  39.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  40.                         isInherit(opv))) {
  41.                 /** \todo set computed elevation */
  42.         }
  43.  
  44.         return CSS_OK;
  45. }
  46.  
  47. css_error css__set_column_rule_style_from_hint(const css_hint *hint,
  48.                 css_computed_style *style)
  49. {
  50.         UNUSED(hint);
  51.         UNUSED(style);
  52.  
  53.         return CSS_OK;
  54. }
  55.  
  56. css_error css__initial_column_rule_style(css_select_state *state)
  57. {
  58.         UNUSED(state);
  59.  
  60.         return CSS_OK;
  61. }
  62.  
  63. css_error css__compose_column_rule_style(const css_computed_style *parent,
  64.                 const css_computed_style *child,
  65.                 css_computed_style *result)
  66. {
  67.         UNUSED(parent);
  68.         UNUSED(child);
  69.         UNUSED(result);
  70.  
  71.         return CSS_OK;
  72. }
  73.  
  74.