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

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

Issue 2381193004: Use sheetText() instead of decodedText() in the CSS preload scanner (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67e98dd66372a2b3166507ee304a86d1b209dcd2..72ee750b8984a5cdbd8a84e040f535449bb2458b 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -87,7 +87,8 @@ void CSSStyleSheetResource::didAddClient(ResourceClient* c) {
// 'c' if it is an instance of HTMLLinkElement. see the comment of
// HTMLLinkElement::setCSSStyleSheet.
Resource::didAddClient(c);
- if (m_didNotifyFirstData)
+
+ if (hasClient(c) && m_didNotifyFirstData)
static_cast<StyleSheetResourceClient*>(c)->didAppendFirstData(this);
// |c| might be removed in didAppendFirstData, so ensure it is still a client.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698