void CounterNode::resetThisAndDescendantsRenderers() { CounterNode* node = this; do { node->resetRenderers(); node = node->nextInPreOrder(this); } while (node); }
void CounterNode::recount(const AtomicString& identifier) { for (CounterNode* node = this; node; node = node->m_nextSibling) { int oldCount = node->m_countInParent; int newCount = node->computeCountInParent(); if (oldCount == newCount) break; node->m_countInParent = newCount; node->resetRenderers(identifier); } }