void HTMLImportChild::ensureLoader() { if (m_loader) return; if (HTMLImportChild* found = root()->findLinkFor(m_url, this)) shareLoader(found); else createLoader(); }
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(); } }