Ejemplo n.º 1
0
void HTMLImportChild::ensureLoader()
{
    if (m_loader)
        return;

    if (HTMLImportChild* found = root()->findLinkFor(m_url, this))
        shareLoader(found);
    else
        createLoader();
}
Ejemplo n.º 2
0
void HTMLImportChild::ensureLoader()
{
    if (m_loader)
        return;

    if (HTMLImportChild* found = toHTMLImportsController(root())->findLinkFor(m_url, this))
        shareLoader(found);
    else
        createLoader();

    if (!isDone() && !formsCycle()) {
        ASSERT(!m_customElementMicrotaskStep);
        m_customElementMicrotaskStep = CustomElement::didCreateImport(this)->weakPtr();
    }
}