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

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

Issue 2417173002: Loading: bulk style errors fix in core/fetch (Closed)
Patch Set: Created 4 years, 2 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 856685402a9fefd2238ded939aeca866f9121d96..7f26ff82e2f1300f289e7edda3d99cbf4b8b64e7 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -96,9 +96,10 @@ void CSSStyleSheetResource::didAddClient(ResourceClient* c) {
static_cast<StyleSheetResourceClient*>(c)->didAppendFirstData(this);
// |c| might be removed in didAppendFirstData, so ensure it is still a client.
- if (hasClient(c) && !isLoading())
+ if (hasClient(c) && !isLoading()) {
static_cast<StyleSheetResourceClient*>(c)->setCSSStyleSheet(
resourceRequest().url(), response().url(), encoding(), this);
+ }
}
const String CSSStyleSheetResource::sheetText(

Powered by Google App Engine
This is Rietveld 408576698