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

Function PiuStyleLinkCompute

modules/piu/All/piuStyle.c:83–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83PiuStyle* PiuStyleLinkCompute(xsMachine *the, PiuStyleLink* chain, PiuApplication* application)
84{
85 PiuStyle* result = (*chain)->computedStyle;
86 if (result == NULL) {
87 PiuStyleLink* link = chain;
88 xsResult = xsGet(xsGlobal, xsID_Style);
89 xsResult = xsNewFunction0(xsResult);
90 result = PIU(Style, xsResult);
91 while (link) {
92 PiuStyleOverride((*link)->style, result);
93 link = (*link)->chain;
94 }
95 (*chain)->computedStyle = result;
96 PiuStyleLookupFont(result);
97 }
98 return result;
99}
100
101void PiuStyleLinkMark(xsMachine* the, void* it, xsMarkRoot markRoot)
102{

Callers 6

PiuTextComputeStylesFunction · 0.85
PiuPortComputeStyleFunction · 0.85
PiuLabelComputeStyleFunction · 0.85
PiuCodeComputeStyleFunction · 0.85
PiuFieldComputeStyleFunction · 0.85
PiuFieldComputeStyleFunction · 0.85

Calls 2

PiuStyleOverrideFunction · 0.85
PiuStyleLookupFontFunction · 0.50

Tested by

no test coverage detected