void ProcessingInstruction::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const { if (!sheet()) return; addSubresourceURL(urls, sheet()->baseURL()); }
void ProcessingInstruction::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { if (!sheet()) return; addSubresourceURL(urls, document()->completeURL(sheet()->href())); }
void CSSStyleSheet::addSubresourceStyleURLs(ListHashSet<KURL>& urls) { Deque<CSSStyleSheet*> styleSheetQueue; styleSheetQueue.append(this); while (!styleSheetQueue.isEmpty()) { CSSStyleSheet* styleSheet = styleSheetQueue.takeFirst(); for (unsigned i = 0; i < styleSheet->m_importRules.size(); ++i) { StyleRuleImport* importRule = styleSheet->m_importRules[i].get(); if (importRule->styleSheet()) { styleSheetQueue.append(importRule->styleSheet()); addSubresourceURL(urls, importRule->styleSheet()->baseURL()); } } for (unsigned i = 0; i < styleSheet->m_childRules.size(); ++i) { StyleRuleBase* rule = styleSheet->m_childRules[i].get(); if (rule->isStyleRule()) static_cast<StyleRule*>(rule)->properties()->addSubresourceStyleURLs(urls, this); else if (rule->isFontFaceRule()) static_cast<StyleRuleFontFace*>(rule)->properties()->addSubresourceStyleURLs(urls, this); } } }
void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const { SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document().completeURL(href())); }
void SVGImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { SVGStyledTransformableElement::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document()->completeURL(href())); }
void CSSFontFaceSrcValue::addSubresourceStyleURLs(ListHashSet<KURL>& urls, const CSSStyleSheet* styleSheet) { if (!isLocal()) addSubresourceURL(urls, styleSheet->completeURL(m_resource)); }
void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { SVGElement::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document()->completeURL(href())); }
void SVGCursorElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const { SVGElement::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document().completeURL(href())); }
void SVGImageElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const { SVGGraphicsElement::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document().completeURL(href())); }
void CSSPrimitiveValue::addSubresourceStyleURLs(ListHashSet<URL>& urls, const StyleSheetContents* styleSheet) const { if (m_primitiveUnitType == CSS_URI) addSubresourceURL(urls, styleSheet->completeURL(m_value.string)); }
void CSSImportRule::addSubresourceStyleURLs(ListHashSet<KURL>& urls) { if (m_styleSheet) addSubresourceURL(urls, m_styleSheet->baseURL()); }