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 2009 John-Mark Bell <jmb@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_play_during(uint32_t opv, css_style *style,
  18.                 css_select_state *state)
  19. {
  20.         lwc_string *uri = NULL;
  21.  
  22.         if (isInherit(opv) == false) {
  23.                 switch (getValue(opv)) {
  24.                 case PLAY_DURING_URI:
  25.                         css__stylesheet_string_get(style->sheet, *((css_code_t *) style->bytecode), &uri);
  26.                         advance_bytecode(style, sizeof(css_code_t));
  27.                         break;
  28.                 case PLAY_DURING_AUTO:
  29.                 case PLAY_DURING_NONE:
  30.                         /** \todo convert to public values */
  31.                         break;
  32.                 }
  33.  
  34.                 /** \todo mix & repeat */
  35.         }
  36.  
  37.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  38.                         isInherit(opv))) {
  39.                 /** \todo play-during */
  40.         }
  41.  
  42.         return CSS_OK;
  43. }
  44.  
  45. css_error css__set_play_during_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_play_during(css_select_state *state)
  55. {
  56.         UNUSED(state);
  57.  
  58.         return CSS_OK;
  59. }
  60.  
  61. css_error css__compose_play_during(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.