| 73 | } |
| 74 | |
| 75 | void PiuPortComputeStyle(PiuPort* self) |
| 76 | { |
| 77 | xsMachine* the = (*self)->the; |
| 78 | PiuApplication* application = (*self)->application; |
| 79 | PiuContainer* container = (PiuContainer*)self; |
| 80 | PiuStyleLink* list = (*application)->styleList; |
| 81 | PiuStyleLink* chain = NULL; |
| 82 | while (container) { |
| 83 | PiuStyle* style = (*container)->style; |
| 84 | if (style) { |
| 85 | list = PiuStyleLinkMatch(the, list, chain, style); |
| 86 | chain = list; |
| 87 | } |
| 88 | container = (*container)->container; |
| 89 | } |
| 90 | if (chain) { |
| 91 | PiuStyle* result = PiuStyleLinkCompute(the, chain, application); |
| 92 | (*self)->computedStyle = result; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | void PiuPortDraw(void* it, PiuView* view, PiuRectangle area) |
| 97 | { |
no test coverage detected