Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file was generated by LibCSS gen_parser
  3.  *
  4.  * Generated from:
  5.  *
  6.  * margin_bottom:CSS_PROP_MARGIN_BOTTOM WRAP:css__parse_margin_side
  7.  *
  8.  * Licensed under the MIT License,
  9.  *                http://www.opensource.org/licenses/mit-license.php
  10.  * Copyright 2010 The NetSurf Browser Project.
  11.  */
  12.  
  13. #include <assert.h>
  14. #include <string.h>
  15.  
  16. #include "bytecode/bytecode.h"
  17. #include "bytecode/opcodes.h"
  18. #include "parse/properties/properties.h"
  19. #include "parse/properties/utils.h"
  20.  
  21. /**
  22.  * Parse margin_bottom
  23.  *
  24.  * \param c       Parsing context
  25.  * \param vector  Vector of tokens to process
  26.  * \param ctx     Pointer to vector iteration context
  27.  * \param result  resulting style
  28.  * \return CSS_OK on success,
  29.  *         CSS_NOMEM on memory exhaustion,
  30.  *         CSS_INVALID if the input is not valid
  31.  *
  32.  * Post condition: \a *ctx is updated with the next token to process
  33.  *                 If the input is invalid, then \a *ctx remains unchanged.
  34.  */
  35. css_error css__parse_margin_bottom(css_language *c,
  36.                 const parserutils_vector *vector, int *ctx,
  37.                 css_style *result)
  38. {
  39.         return css__parse_margin_side(c, vector, ctx, result, CSS_PROP_MARGIN_BOTTOM);
  40. }
  41.