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

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

Issue 1947053002: Manual revert of "Preload scan external css for @import" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep histograms.xml Created 4 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: 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 78ebcd9928613cb4efdb798cef7753d0910e510b..8aa33d13f76e3b233933654410925106089ba313 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -51,7 +51,6 @@ CSSStyleSheetResource* CSSStyleSheetResource::createForTest(const ResourceReques
CSSStyleSheetResource::CSSStyleSheetResource(const ResourceRequest& resourceRequest, const ResourceLoaderOptions& options, const String& charset)
: StyleSheetResource(resourceRequest, CSSStyleSheet, options, "text/css", charset)
- , m_didNotifyFirstData(false)
{
}
@@ -99,17 +98,6 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
return decodedText();
}
-void CSSStyleSheetResource::appendData(const char* data, size_t length)
-{
- Resource::appendData(data, length);
- if (m_didNotifyFirstData)
- return;
- ResourceClientWalker<StyleSheetResourceClient> w(m_clients);
- while (StyleSheetResourceClient* c = w.next())
- c->didAppendFirstData(this);
- m_didNotifyFirstData = true;
-}
-
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