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

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: Renamed according to comments. Created 6 years, 7 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
Index: Source/core/fetch/CSSStyleSheetResource.cpp
diff --git a/Source/core/fetch/CSSStyleSheetResource.cpp b/Source/core/fetch/CSSStyleSheetResource.cpp
index fe859993201511f8a4a98c677bd77d72bc37ae11..042caefe1150c17d4fe2836e8d2ccdde83710c05 100644
--- a/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -108,6 +108,16 @@ void CSSStyleSheetResource::checkNotify()
m_decodedSheetText = String();
}
+void CSSStyleSheetResource::appendData(const char* data, int length)
+{
+ Resource::appendData(data, length);
+
+ ResourcePtr<CSSStyleSheetResource> protect(this);
+ ResourceClientWalker<StyleSheetResourceClient> w(m_clients);
+ while (StyleSheetResourceClient* c = w.next())
abarth-chromium 2014/06/26 16:37:59 Please use complete words as variable names. w ->
+ c->dataReceived(this, data, length);
+}
+
bool CSSStyleSheetResource::isSafeToUnlock() const
{
return m_data->hasOneRef();

Powered by Google App Engine
This is Rietveld 408576698