| 177 | } |
| 178 | |
| 179 | void PiuFieldComputeStyle(PiuField* self) |
| 180 | { |
| 181 | xsMachine* the = (*self)->the; |
| 182 | PiuApplication* application = (*self)->application; |
| 183 | PiuContainer* container = (PiuContainer*)self; |
| 184 | PiuStyleLink* list = (*application)->styleList; |
| 185 | PiuStyleLink* chain = NULL; |
| 186 | while (container) { |
| 187 | PiuStyle* style = (*container)->style; |
| 188 | if (style) { |
| 189 | list = PiuStyleLinkMatch(the, list, chain, style); |
| 190 | chain = list; |
| 191 | } |
| 192 | container = (*container)->container; |
| 193 | } |
| 194 | if (chain) { |
| 195 | PiuStyle* result = PiuStyleLinkCompute(the, chain, application); |
| 196 | (*self)->computedStyle = result; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | void PiuFieldDictionary(xsMachine* the, void* it) |
| 201 | { |
no test coverage detected