Unreviewed, rolling out r112201.
[WebKit-https.git] / Source / WebCore / loader / cache / CachedCSSStyleSheet.cpp
index e8f00b74e4b7f68cc0671b9ddff9e5c9872c374d..3b52cd6dc605b1e2d348c9391ab63469beaacd94 100644 (file)
@@ -117,6 +117,14 @@ void CachedCSSStyleSheet::checkNotify()
         c->setCSSStyleSheet(m_resourceRequest.url(), m_response.url(), m_decoder->encoding().name(), this);
 }
 
+void CachedCSSStyleSheet::error(CachedResource::Status status)
+{
+    setStatus(status);
+    ASSERT(errorOccurred());
+    setLoading(false);
+    checkNotify();
+}
+
 bool CachedCSSStyleSheet::canUseSheet(bool enforceMIMEType, bool* hasValidMIMEType) const
 {
     if (errorOccurred())