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_inside(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_INSIDE_AUTO:
  25.                 case BREAK_INSIDE_AVOID:
  26.                 case BREAK_INSIDE_AVOID_PAGE:
  27.                 case BREAK_INSIDE_AVOID_COLUMN:
  28.                         /** \todo convert to public values */
  29.                         break;
  30.                 }
  31.         }
  32.  
  33.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  34.                         isInherit(opv))) {
  35.                 /** \todo set computed elevation */
  36.         }
  37.  
  38.         return CSS_OK;
  39. }
  40.  
  41. css_error css__set_break_inside_from_hint(const css_hint *hint,
  42.                 css_computed_style *style)
  43. {
  44.         UNUSED(hint);
  45.         UNUSED(style);
  46.  
  47.         return CSS_OK;
  48. }
  49.  
  50. css_error css__initial_break_inside(css_select_state *state)
  51. {
  52.         UNUSED(state);
  53.  
  54.         return CSS_OK;
  55. }
  56.  
  57. css_error css__compose_break_inside(const css_computed_style *parent,
  58.                 const css_computed_style *child,
  59.                 css_computed_style *result)
  60. {
  61.         UNUSED(parent);
  62.         UNUSED(child);
  63.         UNUSED(result);
  64.  
  65.         return CSS_OK;
  66. }
  67.  
  68.