Example #1
0
static void invalidateCountersInContainer(RenderObject* container, const AtomicString& identifier)
{
    if (!container)
        return;
    container = findBeforeAfterParent(container);
    if (!container)
        return;
    // Sometimes the counter is attached directly on the container.
    if (container->isCounter()) {
        toRenderCounter(container)->invalidate(identifier);
        return;
    }
    for (RenderObject* content = container->firstChild(); content; content = content->nextSibling()) {
        if (content->isCounter())
            toRenderCounter(content)->invalidate(identifier);
    }
}
static void invalidateCountersInContainer(RenderObject* container)
{
    if (!container)
        return;
    container = findBeforeAfterParent(container);
    if (!container)
        return;
    for (RenderObject* content = container->firstChild(); content; content = content->nextSibling()) {
        if (content->isCounter())
            toRenderCounter(content)->invalidate();
    }
}