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_break_before(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 BREAK_BEFORE_AUTO:
  25.                 case BREAK_BEFORE_ALWAYS:
  26.                 case BREAK_BEFORE_AVOID:
  27.                 case BREAK_BEFORE_LEFT:
  28.                 case BREAK_BEFORE_RIGHT:
  29.                 case BREAK_BEFORE_PAGE:
  30.                 case BREAK_BEFORE_COLUMN:
  31.                 case BREAK_BEFORE_AVOID_PAGE:
  32.                 case BREAK_BEFORE_AVOID_COLUMN:
  33.                         /** \todo convert to public values */
  34.                         break;
  35.                 }
  36.         }
  37.  
  38.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  39.                         isInherit(opv))) {
  40.                 /** \todo set computed elevation */
  41.         }
  42.  
  43.         return CSS_OK;
  44. }
  45.  
  46. css_error css__set_break_before_from_hint(const css_hint *hint,
  47.                 css_computed_style *style)
  48. {
  49.         UNUSED(hint);
  50.         UNUSED(style);
  51.  
  52.         return CSS_OK;
  53. }
  54.  
  55. css_error css__initial_break_before(css_select_state *state)
  56. {
  57.         UNUSED(state);
  58.  
  59.         return CSS_OK;
  60. }
  61.  
  62. css_error css__compose_break_before(const css_computed_style *parent,
  63.                 const css_computed_style *child,
  64.                 css_computed_style *result)
  65. {
  66.         UNUSED(parent);
  67.         UNUSED(child);
  68.         UNUSED(result);
  69.  
  70.         return CSS_OK;
  71. }
  72.  
  73.