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

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

Issue 2362103002: {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 7781999bbd9d7b9689fb34125c8cc3aa8f994c35..2b24aad65823f048c0935f0be08fa4bd8fb246ac 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -106,8 +106,10 @@ void CSSStyleSheetResource::checkNotify()
m_decodedSheetText = decodedText();
ResourceClientWalker<StyleSheetResourceClient> w(m_clients);
- while (StyleSheetResourceClient* c = w.next())
- c->setCSSStyleSheet(m_resourceRequest.url(), m_response.url(), encoding(), this);
+ 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