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

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

Issue 1819593002: Preload scan external css for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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: third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
index 20bd6266d884287824c21202c8fbcb8805d2bda2..1167300feb0ae89577dbc2c370a3e7f99315787e 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -103,6 +103,14 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
return decodedText();
}
+void CSSStyleSheetResource::appendData(const char* data, size_t length)
+{
+ Resource::appendData(data, length);
+ ResourceClientWalker<StyleSheetResourceClient> w(m_clients);
+ while (StyleSheetResourceClient* c = w.next())
+ c->didAppendData(this);
+}
+
void CSSStyleSheetResource::checkNotify()
{
// Decode the data to find out the encoding and keep the sheet text around during checkNotify()

Powered by Google App Engine
This is Rietveld 408576698