标签:chromium webkit scriptloader
void ScriptLoader::handleSourceAttribute(const String& sourceUrl)
{
if (ignoresLoadRequest() || sourceUrl.isEmpty())
return;
bool ScriptLoader::ignoresLoadRequest() const
{
VLOG(0)<<"ScriptLoader::ignoresLoadRequest m_alreadyStarted="<<m_alreadyStarted<<" m_isExternalScript="<<m_isExternalScript
<<" !element()="<<!element()
<<" !element()->inDocument()="<<(element()? !element()->inDocument() : false);
return m_alreadyStarted || m_isExternalScript || m_parserInserted || !element() || !element()->inDocument();
}
坑,Chromium里threaded parsing导致sub resource loader不止一个路径
标签:chromium webkit scriptloader
原文地址:http://blog.csdn.net/cteng/article/details/43276339