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