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

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

Issue 1879793003: Remove DeferredByClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Resource_load
Patch Set: Address yhirano's comments Created 4 years, 8 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/FontResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FontResource.cpp b/third_party/WebKit/Source/core/fetch/FontResource.cpp
index 6c2d95a3414615a16eb31447b9fb735d6a971b3c..277e9b1db18c67c733f219f1999f652a50f581d0 100644
--- a/third_party/WebKit/Source/core/fetch/FontResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/FontResource.cpp
@@ -74,9 +74,6 @@ FontResource* FontResource::fetch(FetchRequest& request, ResourceFetcher* fetche
{
ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone);
request.mutableResourceRequest().setRequestContext(WebURLRequest::RequestContextFont);
- // Defer the load until the font is actually needed unless this is a preload.
- if (!request.forPreload())
- request.setDefer(FetchRequest::DeferredByClient);
return toFontResource(fetcher->requestResource(request, FontResourceFactory()));
}

Powered by Google App Engine
This is Rietveld 408576698