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_gap(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_GAP_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_GAP_NORMAL:
  32.                         /** \todo convert to public values */
  33.                         break;
  34.                 }
  35.         }
  36.  
  37.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  38.                         isInherit(opv))) {
  39.                 /** \todo set computed elevation */
  40.         }
  41.  
  42.         return CSS_OK;
  43. }
  44.  
  45. css_error css__set_column_gap_from_hint(const css_hint *hint,
  46.                 css_computed_style *style)
  47. {
  48.         UNUSED(hint);
  49.         UNUSED(style);
  50.  
  51.         return CSS_OK;
  52. }
  53.  
  54. css_error css__initial_column_gap(css_select_state *state)
  55. {
  56.         UNUSED(state);
  57.  
  58.         return CSS_OK;
  59. }
  60.  
  61. css_error css__compose_column_gap(const css_computed_style *parent,
  62.                 const css_computed_style *child,
  63.                 css_computed_style *result)
  64. {
  65.         UNUSED(parent);
  66.         UNUSED(child);
  67.         UNUSED(result);
  68.  
  69.         return CSS_OK;
  70. }
  71.  
  72.