Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 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 |
||
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_column_width(uint32_t opv, css_style *style, |
||
18 | css_select_state *state) |
||
19 | { |
||
20 | css_fixed length = 0; |
||
21 | uint32_t unit = UNIT_PX; |
||
22 | |||
23 | if (isInherit(opv) == false) { |
||
24 | switch (getValue(opv)) { |
||
25 | case COLUMN_WIDTH_SET: |
||
26 | length = *((css_fixed *) style->bytecode); |
||
27 | advance_bytecode(style, sizeof(length)); |
||
28 | unit = *((uint32_t *) style->bytecode); |
||
29 | advance_bytecode(style, sizeof(unit)); |
||
30 | break; |
||
31 | case COLUMN_WIDTH_AUTO: |
||
32 | /** \todo convert to public values */ |
||
33 | break; |
||
34 | } |
||
35 | } |
||
36 | |||
37 | if (css__outranks_existing(getOpcode(opv), isImportant(opv), state, |
||
38 | isInherit(opv))) { |
||
39 | /** \todo set computed elevation */ |
||
40 | } |
||
41 | |||
42 | return CSS_OK; |
||
43 | } |
||
44 | |||
45 | css_error css__set_column_width_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_column_width(css_select_state *state) |
||
55 | { |
||
56 | UNUSED(state); |
||
57 | |||
58 | return CSS_OK; |
||
59 | } |
||
60 | |||
61 | css_error css__compose_column_width(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 |