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

Method hasNodeId

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

Source from the content-addressed store, hash-verified

255}
256
257bool CSSAttributesManager::hasNodeId(const StringBox& nodeId) const {
258 if (_cssNodeContainer != nullptr && _cssNodeContainer->node.getNodeId() == nodeId) {
259 return true;
260 }
261 if (_cssNodeContainerFromParentOveridde != nullptr &&
262 _cssNodeContainerFromParentOveridde->node.getNodeId() == nodeId) {
263 return true;
264 }
265
266 return false;
267}
268
269bool CSSAttributesManager::attributeChanged(AttributeId attribute) {
270 bool changed = false;

Callers 1

findAllNodesWithIdMethod · 0.80

Calls 1

getNodeIdMethod · 0.45

Tested by

no test coverage detected