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

Unified Diff: third_party/WebKit/Source/core/html/LinkRelAttribute.cpp

Issue 1647813003: Remove support for <link rel=subresource> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed and deleted tests 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/html/LinkRelAttribute.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp b/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
index b3e8d831d64b1ae54073a017077f77b0c472655b..825ea48363d4b5ff7270f7ad17a0b8efcd42d9c7 100644
--- a/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
+++ b/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
@@ -42,7 +42,6 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
, m_isDNSPrefetch(false)
, m_isPreconnect(false)
, m_isLinkPrefetch(false)
- , m_isLinkSubresource(false)
, m_isLinkPreload(false)
, m_isLinkPrerender(false)
, m_isLinkNext(false)
@@ -76,8 +75,6 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
} else if (equalIgnoringCase(linkType, "preconnect")) {
if (RuntimeEnabledFeatures::linkPreconnectEnabled())
m_isPreconnect = true;
- } else if (equalIgnoringCase(linkType, "subresource")) {
- m_isLinkSubresource = true;
} else if (equalIgnoringCase(linkType, "preload")) {
if (RuntimeEnabledFeatures::linkPreloadEnabled())
m_isLinkPreload = true;
@@ -92,6 +89,7 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
} else if (equalIgnoringCase(linkType, "manifest")) {
m_isManifest = true;
}
+ // Adding or removing a value here requires you to update RelList::supportedTokens()
}
}

Powered by Google App Engine
This is Rietveld 408576698