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_color(uint32_t opv, css_style *style,
  18.                 css_select_state *state)
  19. {
  20.         css_color color = 0;
  21.  
  22.         if (isInherit(opv) == false) {
  23.                 switch (getValue(opv)) {
  24.                 case COLUMN_RULE_COLOR_SET:
  25.                         color = *((css_fixed *) style->bytecode);
  26.                         advance_bytecode(style, sizeof(color));
  27.                         break;
  28.                 case COLUMN_RULE_COLOR_TRANSPARENT:
  29.                 case COLUMN_RULE_COLOR_CURRENT_COLOR:
  30.                         /** \todo convert to public values */
  31.                         break;
  32.                 }
  33.         }
  34.  
  35.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  36.                         isInherit(opv))) {
  37.                 /** \todo set computed elevation */
  38.         }
  39.  
  40.         return CSS_OK;
  41. }
  42.  
  43. css_error css__set_column_rule_color_from_hint(const css_hint *hint,
  44.                 css_computed_style *style)
  45. {
  46.         UNUSED(hint);
  47.         UNUSED(style);
  48.  
  49.         return CSS_OK;
  50. }
  51.  
  52. css_error css__initial_column_rule_color(css_select_state *state)
  53. {
  54.         UNUSED(state);
  55.  
  56.         return CSS_OK;
  57. }
  58.  
  59. css_error css__compose_column_rule_color(const css_computed_style *parent,
  60.                 const css_computed_style *child,
  61.                 css_computed_style *result)
  62. {
  63.         UNUSED(parent);
  64.         UNUSED(child);
  65.         UNUSED(result);
  66.  
  67.         return CSS_OK;
  68. }
  69.  
  70.