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

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: Fix uninit member :/ 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
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/loader/LinkLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkRelAttribute.cpp
diff --git a/Source/core/html/LinkRelAttribute.cpp b/Source/core/html/LinkRelAttribute.cpp
index 66588e58da753542f5badb53e486f059146b6191..8df7495f47c60d03e61d771c710d03b0e9bef701 100644
--- a/Source/core/html/LinkRelAttribute.cpp
+++ b/Source/core/html/LinkRelAttribute.cpp
@@ -44,6 +44,7 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
, m_isPreconnect(false)
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
+ , m_isLinkPreload(false)
, m_isLinkPrerender(false)
, m_isLinkNext(false)
, m_isImport(false)
@@ -80,6 +81,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")) {
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/loader/LinkLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698