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

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

Issue 2353903002: {CSS,XSL}StyleSheetResource should mark their clients as finished on checkNotify (Closed)
Patch Set: yhirano style 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 b5aeeb8612655877e005ea764f75d8f1e2601e52..4ea685d3baac37819a53eff9ca15ec6411133c45 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -120,8 +120,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