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

Method setCSSClass

valdi/src/valdi/runtime/CSS/CSSAttributesManager.cpp:158–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool CSSAttributesManager::setCSSClass(const Value& cssClass, bool isOverridenFromParent) {
159 return getCSSNodeContainer(isOverridenFromParent).node.setClass(cssClass.toStringBox());
160}
161
162bool CSSAttributesManager::setCSSDocument(const Value& cssDocument, bool isOverridenFromParent) {
163 auto cssDocumentNative = castOrNull<CSSDocument>(cssDocument.getValdiObject());

Callers 1

setAttributeMethod · 0.80

Calls 2

setClassMethod · 0.80
toStringBoxMethod · 0.45

Tested by

no test coverage detected