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 099ab741690132d2c62c5260dcc973d63f2f30fe..00d4ddf795ea0aa2d0ddfebcaaa208c300914b02 100644 |
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp |
@@ -99,15 +99,18 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const |
return decodedText(); |
} |
-void CSSStyleSheetResource::checkNotify() |
+void CSSStyleSheetResource::checkNotify(MarkFinishedOption markFinishedOption) |
{ |
// Decode the data to find out the encoding and keep the sheet text around during checkNotify() |
if (m_data) |
m_decodedSheetText = decodedText(); |
ResourceClientWalker<StyleSheetResourceClient> w(clients()); |
- while (StyleSheetResourceClient* c = w.next()) |
+ while (StyleSheetResourceClient* c = w.next()) { |
+ if (markFinishedOption == MarkFinishedOption::ShouldMarkFinished) |
+ 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(); |
} |