MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuFieldComputeStyle

Function PiuFieldComputeStyle

modules/piu/PC/lin/piuField.c:179–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void 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
200void PiuFieldDictionary(xsMachine* the, void* it)
201{

Callers 2

PiuFieldBindFunction · 0.70
PiuFieldCascadeFunction · 0.70

Calls 2

PiuStyleLinkMatchFunction · 0.85
PiuStyleLinkComputeFunction · 0.85

Tested by

no test coverage detected