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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 31793004: Remove dead code in ResourceFetcher::preload (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index 2a671896ebf2d012dfe2bf9a38170a49f5305833..1788add79062dff045b9c3c65951f1ee00a7dd41 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -1052,20 +1052,6 @@ void ResourceFetcher::decrementRequestCount(const Resource* res)
void ResourceFetcher::preload(Resource::Type type, FetchRequest& request, const String& charset)
{
- bool delaySubresourceLoad = true;
- delaySubresourceLoad = false;
- if (delaySubresourceLoad) {
- // FIXME: It seems wrong to poke body()->renderer() here.
- bool hasRendering = m_document->body() && m_document->body()->renderer();
- bool canBlockParser = type == Resource::Script || type == Resource::CSSStyleSheet;
- if (!hasRendering && !canBlockParser) {
- // Don't preload subresources that can't block the parser before we have something to draw.
- // This helps prevent preloads from delaying first display when bandwidth is limited.
- PendingPreload pendingPreload = { type, request, charset };
- m_pendingPreloads.append(pendingPreload);
- return;
- }
- }
requestPreload(type, request, charset);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698