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

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

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preload @import Created 4 years, 5 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.h
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
index bf37f4f31518b593ccdb12b43a74cdfa20159ddd..cb2f83db4688daf0301e3e5972911dc795433932 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h
@@ -55,6 +55,8 @@ public:
StyleSheetContents* restoreParsedStyleSheet(const CSSParserContext&);
void saveParsedStyleSheet(StyleSheetContents*);
+ void appendData(const char* data, size_t length) override;
+
private:
class CSSStyleSheetResourceFactory : public ResourceFactory {
public:
@@ -80,6 +82,8 @@ private:
String m_decodedSheetText;
Member<StyleSheetContents> m_parsedStyleSheetCache;
+
+ bool m_didNotifyFirstData;
};
DEFINE_RESOURCE_TYPE_CASTS(CSSStyleSheet);

Powered by Google App Engine
This is Rietveld 408576698