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

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

Issue 1819593002: Preload scan external css for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kouhei@ review Created 4 years, 8 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 0e60508c9e103a2676b49f0be6934c0d421595ea..12fa0c9b2229a535ce0d03742c20df79317f7780 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;
+
protected:
bool isSafeToUnlock() const override;
void destroyDecodedDataIfPossible() override;
@@ -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