void CounterNode::recount() { 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->resetThisAndDescendantsRenderers(); } }
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); } }
void CounterNode::recount() { for (CounterNode* c = this; c; c = c->m_nextSibling) { int oldCount = c->m_countInParent; int newCount = c->computeCountInParent(); c->m_countInParent = newCount; if (oldCount == newCount) break; if (c->m_renderer->isCounter()) c->m_renderer->setNeedsLayoutAndPrefWidthsRecalc(); } }