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_speech_rate(uint32_t opv, css_style *style,
  18.                 css_select_state *state)
  19. {
  20.         css_fixed rate = 0;
  21.  
  22.         if (isInherit(opv) == false) {
  23.                 switch (getValue(opv)) {
  24.                 case SPEECH_RATE_SET:
  25.                         rate = *((css_fixed *) style->bytecode);
  26.                         advance_bytecode(style, sizeof(rate));
  27.                         break;
  28.                 case SPEECH_RATE_X_SLOW:
  29.                 case SPEECH_RATE_SLOW:
  30.                 case SPEECH_RATE_MEDIUM:
  31.                 case SPEECH_RATE_FAST:
  32.                 case SPEECH_RATE_X_FAST:
  33.                 case SPEECH_RATE_FASTER:
  34.                 case SPEECH_RATE_SLOWER:
  35.                         /** \todo convert to public values */
  36.                         break;
  37.                 }
  38.         }
  39.  
  40.         if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
  41.                         isInherit(opv))) {
  42.                 /** \todo speech-rate */
  43.         }
  44.  
  45.         return CSS_OK;
  46. }
  47.  
  48. css_error css__set_speech_rate_from_hint(const css_hint *hint,
  49.                 css_computed_style *style)
  50. {
  51.         UNUSED(hint);
  52.         UNUSED(style);
  53.  
  54.         return CSS_OK;
  55. }
  56.  
  57. css_error css__initial_speech_rate(css_select_state *state)
  58. {
  59.         UNUSED(state);
  60.  
  61.         return CSS_OK;
  62. }
  63.  
  64. css_error css__compose_speech_rate(const css_computed_style *parent,
  65.                 const css_computed_style *child,
  66.                 css_computed_style *result)
  67. {
  68.         UNUSED(parent);
  69.         UNUSED(child);
  70.         UNUSED(result);
  71.  
  72.         return CSS_OK;
  73. }
  74.  
  75.