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/html/LinkRelAttribute.cpp

Issue 1060863003: Add initial link preload support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments Created 5 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: Source/core/html/LinkRelAttribute.cpp
diff --git a/Source/core/html/LinkRelAttribute.cpp b/Source/core/html/LinkRelAttribute.cpp
index 66588e58da753542f5badb53e486f059146b6191..5ae459735c13e41bd83b8a9b80a076ce78041932 100644
--- a/Source/core/html/LinkRelAttribute.cpp
+++ b/Source/core/html/LinkRelAttribute.cpp
@@ -80,6 +80,9 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
m_isPreconnect = true;
} else if (equalIgnoringCase(linkType, "subresource")) {
m_isLinkSubresource = true;
+ } else if (equalIgnoringCase(linkType, "preload")) {
+ if (RuntimeEnabledFeatures::linkPreloadEnabled())
+ m_isLinkPreload = true;
} else if (equalIgnoringCase(linkType, "prerender")) {
m_isLinkPrerender = true;
} else if (equalIgnoringCase(linkType, "next")) {

Powered by Google App Engine
This is Rietveld 408576698