Ejemplo n.º 1
0
void CustomElementRegistry::didGiveTypeExtension(Element* element)
{
    RefPtr<CustomElementConstructor> constructor = findFor(element);
    if (!constructor || !constructor->isExtended())
        return;
    activate(CustomElementInvocation(element));
}
Ejemplo n.º 2
0
void CustomElementRegistry::enqueueReadyCallback(CustomElementCallback* callback, Element* element)
{
    if (!callback->hasReady())
        return;

    bool wasInactive = m_invocations.isEmpty();
    m_invocations.append(CustomElementInvocation(callback, element));
    if (wasInactive)
        activeCustomElementRegistries().add(this);
}
Ejemplo n.º 3
0
void CustomElementRegistry::didCreateElement(Element* element)
{
    activate(CustomElementInvocation(element));
}