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

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

Issue 1586563014: Add <link rel=preload> onload support for scripts and styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oilpan build fixes and review comments 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 074398824ef02635387beee3cf6a43ae4b6ae920..e33f8df50644659a31e47b0fd171f471376305d0 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)
{
ResourcePtr<Resource> resource;
switch (type) {
@@ -196,6 +196,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