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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 1829403002: Clean up font loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Resource_status
Patch Set: 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/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index f146688b226ab9125b00aa12f8b26bb25b62e02a..6a925dd663dbfc10ee3577c9fa7ea691f93c0e02 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -179,9 +179,6 @@ Resource* DocumentLoader::startPreload(Resource::Type type, FetchRequest& reques
break;
case Resource::Font:
resource = FontResource::fetch(request, fetcher());
- // This is needed for fonts as loading doesn't start until there's usage.
- if (resource)
- toFontResource(resource)->beginLoadIfNeeded(fetcher());
break;
case Resource::Media:
resource = RawResource::fetchMedia(request, fetcher());

Powered by Google App Engine
This is Rietveld 408576698