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_width(uint32_t opv, css_style *style,
  18.                 css_select_state *state)
  19. {
  20.         css_fixed length = 0;
  21.         uint32_t unit = UNIT_PX;
  22.  
  23.         if (isInherit(opv) == false) {
  24.                 switch (getValue(opv)) {
  25.                 case COLUMN_RULE_WIDTH_SET:
  26.                         length = *((css_fixed *) style->bytecode);
  27.                         advance_bytecode(style, sizeof(length));
  28.                         unit = *((uint32_t *) style->bytecode);
  29.                         advance_bytecode(style, sizeof(unit));
  30.                         break;
  31.                 case COLUMN_RULE_WIDTH_THIN:
  32.                 case COLUMN_RULE_WIDTH_MEDIUM:
  33.                 case COLUMN_RULE_WIDTH_THICK:
  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_width_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_width(css_select_state *state)
  57. {
  58.         UNUSED(state);
  59.  
  60.         return CSS_OK;
  61. }
  62.  
  63. css_error css__compose_column_rule_width(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.