summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/CachedCSSStyleSheet.cpp
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-03-09 14:12:21 +0000
committerLeon Clarke <leonclarke@google.com>2010-05-04 10:59:37 +0100
commitf91ac8eab3399adb5325701bebe0590a77e49df7 (patch)
tree04ff055963cf2bfe147998ca3396134b243be38d /WebCore/loader/CachedCSSStyleSheet.cpp
parentb97e8541004c77ec0c85f74b896b9d3bdb6de6b4 (diff)
downloadexternal_webkit-f91ac8eab3399adb5325701bebe0590a77e49df7.zip
external_webkit-f91ac8eab3399adb5325701bebe0590a77e49df7.tar.gz
external_webkit-f91ac8eab3399adb5325701bebe0590a77e49df7.tar.bz2
Link prefetch support
http://b/issue?id=2268353
Diffstat (limited to 'WebCore/loader/CachedCSSStyleSheet.cpp')
-rw-r--r--WebCore/loader/CachedCSSStyleSheet.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/loader/CachedCSSStyleSheet.cpp b/WebCore/loader/CachedCSSStyleSheet.cpp
index b2e03b9..3fc28ff 100644
--- a/WebCore/loader/CachedCSSStyleSheet.cpp
+++ b/WebCore/loader/CachedCSSStyleSheet.cpp
@@ -51,8 +51,10 @@ CachedCSSStyleSheet::~CachedCSSStyleSheet()
void CachedCSSStyleSheet::didAddClient(CachedResourceClient *c)
{
- if (!m_loading)
+ if (!m_loading) {
c->setCSSStyleSheet(m_url, m_response.url(), m_decoder->encoding().name(), this);
+ c->notifyFinished(this);
+ }
}
void CachedCSSStyleSheet::allClientsRemoved()
@@ -103,6 +105,10 @@ void CachedCSSStyleSheet::data(PassRefPtr<SharedBuffer> data, bool allDataReceiv
checkNotify();
// Clear the decoded text as it is unlikely to be needed immediately again and is cheap to regenerate.
m_decodedSheetText = String();
+
+ CachedResourceClientWalker w(m_clients);
+ while (CachedResourceClient* c = w.next())
+ c->notifyFinished(this);
}
void CachedCSSStyleSheet::checkNotify()