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

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

Issue 1577073005: Add <link rel=preload> onload support for scripts and styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defeatedly removed image :/ Created 4 years, 11 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 f17bb791a94af1a3547f8417069ebef192336a70..bce7b2227554eb26fe90c7c195a28e738619a9f3 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -160,7 +160,7 @@ const KURL& DocumentLoader::url() const
return m_request.url();
}
-void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request)
+ResourcePtr<Resource> DocumentLoader::startPreload(Resource::Type type, FetchRequest& request, LinkLoader* linkLoader)
Nate Chapin 2016/01/15 18:53:58 linkLoader parameter looks unused.
Yoav Weiss 2016/01/15 21:40:25 yup
{
ResourcePtr<Resource> resource;
switch (type) {
@@ -194,6 +194,7 @@ void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request)
if (resource)
fetcher()->preloadStarted(resource.get());
+ return resource;
}
void DocumentLoader::didChangePerformanceTiming()

Powered by Google App Engine
This is Rietveld 408576698