void CSSValue::addSubresourceStyleURLs(ListHashSet<KURL>& urls, const CSSStyleSheet* styleSheet) { if (isPrimitiveValue()) static_cast<CSSPrimitiveValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (isValueList()) static_cast<CSSValueList*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (classType() == FontFaceSrcClass) static_cast<CSSFontFaceSrcValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (classType() == ReflectClass) static_cast<CSSReflectValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); }
CSSValue::Type CSSValue::cssValueType() const { if (isInheritedValue()) return CSS_INHERIT; if (isPrimitiveValue()) return CSS_PRIMITIVE_VALUE; if (isValueList()) return CSS_VALUE_LIST; if (isInitialValue()) return CSS_INITIAL; return CSS_CUSTOM; }
void CSSValue::addSubresourceStyleURLs(ListHashSet<KURL>& urls, const StyleSheetContents* styleSheet) const { // This should get called for internal instances only. ASSERT(!isCSSOMSafe()); if (isPrimitiveValue()) static_cast<const CSSPrimitiveValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (isValueList()) static_cast<const CSSValueList*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (classType() == FontFaceSrcClass) static_cast<const CSSFontFaceSrcValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); else if (classType() == ReflectClass) static_cast<const CSSReflectValue*>(this)->addSubresourceStyleURLs(urls, styleSheet); }
bool CSSValue::hasFailedOrCanceledSubresources() const { if (isValueList()) return toCSSValueList(this)->hasFailedOrCanceledSubresources(); if (getClassType() == FontFaceSrcClass) return toCSSFontFaceSrcValue(this)->hasFailedOrCanceledSubresources(); if (getClassType() == ImageClass) return toCSSImageValue(this)->hasFailedOrCanceledSubresources(); if (getClassType() == CrossfadeClass) return toCSSCrossfadeValue(this)->hasFailedOrCanceledSubresources(); if (getClassType() == ImageSetClass) return toCSSImageSetValue(this)->hasFailedOrCanceledSubresources(); return false; }
bool CSSValue::hasFailedOrCanceledSubresources() const { // This should get called for internal instances only. ASSERT(!isCSSOMSafe()); if (isValueList()) return toCSSValueList(this)->hasFailedOrCanceledSubresources(); if (classType() == FontFaceSrcClass) return toCSSFontFaceSrcValue(this)->hasFailedOrCanceledSubresources(); if (classType() == ImageClass) return toCSSImageValue(this)->hasFailedOrCanceledSubresources(); if (classType() == CrossfadeClass) return toCSSCrossfadeValue(this)->hasFailedOrCanceledSubresources(); if (classType() == ImageSetClass) return toCSSImageSetValue(this)->hasFailedOrCanceledSubresources(); return false; }
bool CSSValue::hasFailedOrCanceledSubresources() const { // This should get called for internal instances only. ASSERT(!isCSSOMSafe()); if (isValueList()) return static_cast<const CSSValueList*>(this)->hasFailedOrCanceledSubresources(); if (classType() == FontFaceSrcClass) return static_cast<const CSSFontFaceSrcValue*>(this)->hasFailedOrCanceledSubresources(); if (classType() == ImageClass) return static_cast<const CSSImageValue*>(this)->hasFailedOrCanceledSubresources(); if (classType() == CrossfadeClass) return static_cast<const CSSCrossfadeValue*>(this)->hasFailedOrCanceledSubresources(); #if ENABLE(CSS_IMAGE_SET) if (classType() == ImageSetClass) return static_cast<const CSSImageSetValue*>(this)->hasFailedOrCanceledSubresources(); #endif return false; }