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
css__cascade_speak_header(uint32_t opv,css_style * style,css_select_state * state)17 css_error css__cascade_speak_header(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 SPEAK_HEADER_ONCE:
25 case SPEAK_HEADER_ALWAYS:
26 /** \todo convert to public values */
27 break;
28 }
29 }
30
31 if (css__outranks_existing(getOpcode(opv), isImportant(opv), state,
32 isInherit(opv))) {
33 /** \todo speak-header */
34 }
35
36 return CSS_OK;
37 }
38
css__set_speak_header_from_hint(const css_hint * hint,css_computed_style * style)39 css_error css__set_speak_header_from_hint(const css_hint *hint,
40 css_computed_style *style)
41 {
42 UNUSED(hint);
43 UNUSED(style);
44
45 return CSS_OK;
46 }
47
css__initial_speak_header(css_select_state * state)48 css_error css__initial_speak_header(css_select_state *state)
49 {
50 UNUSED(state);
51
52 return CSS_OK;
53 }
54
css__compose_speak_header(const css_computed_style * parent,const css_computed_style * child,css_computed_style * result)55 css_error css__compose_speak_header(const css_computed_style *parent,
56 const css_computed_style *child,
57 css_computed_style *result)
58 {
59 UNUSED(parent);
60 UNUSED(child);
61 UNUSED(result);
62
63 return CSS_OK;
64 }
65
66