| 145 | } |
| 146 | |
| 147 | void PiuFieldComputeStyle(PiuField* self) |
| 148 | { |
| 149 | xsMachine* the = (*self)->the; |
| 150 | PiuApplication* application = (*self)->application; |
| 151 | PiuContainer* container = (PiuContainer*)self; |
| 152 | PiuStyleLink* list = (*application)->styleList; |
| 153 | PiuStyleLink* chain = NULL; |
| 154 | while (container) { |
| 155 | PiuStyle* style = (*container)->style; |
| 156 | if (style) { |
| 157 | list = PiuStyleLinkMatch(the, list, chain, style); |
| 158 | chain = list; |
| 159 | } |
| 160 | container = (*container)->container; |
| 161 | } |
| 162 | if (chain) { |
| 163 | PiuStyle* result = PiuStyleLinkCompute(the, chain, application); |
| 164 | (*self)->computedStyle = result; |
| 165 | PiuFont* font = (*result)->font; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | void PiuFieldDictionary(xsMachine* the, void* it) |
| 170 | { |
no test coverage detected