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

Unified Diff: third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp

Issue 2544583003: Ensure CSS scanner does not mark preloads as referenced (Closed)
Patch Set: Created 4 years 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/CSSPreloadScannerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp
index ede7f729a8ecd5e84f3b29d4a2a5e259f8e10961..920d5b80baed70ae291b6dbfe054b5a447c1a01d 100644
--- a/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp
+++ b/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp
@@ -257,7 +257,7 @@ CSSPreloaderResourceClient::CSSPreloaderResourceClient(
: ScanOnly),
m_preloader(preloader),
m_resource(toCSSStyleSheetResource(resource)) {
- m_resource->addClient(this);
+ m_resource->addClient(this, Resource::DontMarkAsReferenced);
}
CSSPreloaderResourceClient::~CSSPreloaderResourceClient() {}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698