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

Method setSiblingsCount

valdi/src/valdi/runtime/CSS/CSSNode.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool CSSNode::setSiblingsCount(int count) {
135 if (count == _siblingsCount) {
136 return false;
137 }
138
139 _siblingsCount = count;
140 return true;
141}
142
143inline bool shouldReplaceDeclaration(const CSSStyleDeclaration& existing, const CSSStyleDeclaration& newDeclaration) {
144 if (newDeclaration.priority < existing.priority) {

Callers 1

setSiblingsIndexesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected