Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: Source/core/fetch/CSSStyleSheetResource.cpp

Issue 166633002: Prefetch @import files from CSS files. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed according to Yoav´s comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fetch/CSSStyleSheetResource.h ('k') | Source/core/fetch/StyleSheetResourceClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/CSSStyleSheetResource.cpp
diff --git a/Source/core/fetch/CSSStyleSheetResource.cpp b/Source/core/fetch/CSSStyleSheetResource.cpp
index 869d7ca543715dce7f4a7c78d1f82958ea7da477..bdcd3152b31ab2aff9050c07b43e92ea1b3b283b 100644
--- a/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -109,6 +109,16 @@ void CSSStyleSheetResource::checkNotify()
m_decodedSheetText = String();
}
+void CSSStyleSheetResource::appendData(const char* data, unsigned length)
+{
+ Resource::appendData(data, length);
+
+ ResourcePtr<CSSStyleSheetResource> protect(this);
+ ResourceClientWalker<StyleSheetResourceClient> walker(m_clients);
+ while (StyleSheetResourceClient* client = walker.next())
+ client->dataReceived(this);
+}
+
bool CSSStyleSheetResource::isSafeToUnlock() const
{
return m_data->hasOneRef();
« no previous file with comments | « Source/core/fetch/CSSStyleSheetResource.h ('k') | Source/core/fetch/StyleSheetResourceClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698