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

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

Issue 2362983002: {CSS,XSL}StyleSheetResource should mark their clients as finished on checkNotify (Closed)
Patch Set: Created 4 years, 3 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 763015bfe8f64e39a326e59f580e92bb117b0d73..47b633e174b2fdee6c5a7d1dabcdafb18095d75d 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -104,8 +104,10 @@ void CSSStyleSheetResource::checkNotify()
m_decodedSheetText = decodedText();
ResourceClientWalker<StyleSheetResourceClient> w(clients());
- while (StyleSheetResourceClient* c = w.next())
+ while (StyleSheetResourceClient* c = w.next()) {
+ markClientFinished(c);
c->setCSSStyleSheet(resourceRequest().url(), response().url(), encoding(), this);
+ }
// Clear the decoded text as it is unlikely to be needed immediately again and is cheap to regenerate.
m_decodedSheetText = String();
}

Powered by Google App Engine
This is Rietveld 408576698