Add support for import@async

We don't have a good way of testing this behavior without introducing a race.
Ideally we'd unit test it, but we don't really have unit tests yet.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/751493003
This commit is contained in:
Adam Barth 2014-11-20 23:14:49 -08:00
parent 67d5db4520
commit 0c96c6eaa6

View File

@ -74,7 +74,7 @@ void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child)
bool HTMLImportElement::isSync() const
{
return true;
return !hasAttribute(HTMLNames::asyncAttr);
}
Element* HTMLImportElement::link()