MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toCSSAttribute

Function toCSSAttribute

valdi/src/valdi/runtime/CSS/CSSDocument.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39CSSAttribute toCSSAttribute(AttributeIds& attributeIds, const Valdi::NodeAttribute& nodeAttribute) {
40 return {.id = attributeIds.getIdForName(Valdi::StringCache::getGlobal().makeString(nodeAttribute.name())),
41 .value = valueFromNodeAttribute(nodeAttribute)};
42}
43
44void CSSDocument::populateStyleDeclaration(AttributeIds& attributeIds,
45 const Valdi::StyleDeclaration& styleDeclaration,

Callers 2

populateRuleIndexMethod · 0.85

Calls 5

getGlobalFunction · 0.85
valueFromNodeAttributeFunction · 0.85
getIdForNameMethod · 0.80
makeStringMethod · 0.80
nameMethod · 0.65

Tested by

no test coverage detected