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

Function PiuFieldComputeStyle

modules/piu/PC/win/piuField.cpp:147–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void 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
169void PiuFieldDictionary(xsMachine* the, void* it)
170{

Callers 2

PiuFieldBindFunction · 0.70
PiuFieldCascadeFunction · 0.70

Calls 2

PiuStyleLinkMatchFunction · 0.85
PiuStyleLinkComputeFunction · 0.85

Tested by

no test coverage detected