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

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

Issue 116183005: Add support for rel=next to Prerender in Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add missing file Created 6 years, 10 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.cpp » ('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 dca254aabc5719e2fa3800395543c7e735087d6e..91ba040155a4d5fd557c5159045a9c9eaa67362e 100644
--- a/Source/core/html/LinkRelAttribute.cpp
+++ b/Source/core/html/LinkRelAttribute.cpp
@@ -45,6 +45,7 @@ LinkRelAttribute::LinkRelAttribute()
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
, m_isLinkPrerender(false)
+ , m_isLinkNext(false)
, m_isImport(false)
{
}
@@ -57,6 +58,7 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
, m_isLinkPrefetch(false)
, m_isLinkSubresource(false)
, m_isLinkPrerender(false)
+ , m_isLinkNext(false)
, m_isImport(false)
{
if (equalIgnoringCase(rel, "stylesheet")) {
@@ -98,6 +100,8 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
m_isLinkSubresource = true;
} else if (equalIgnoringCase(*it, "prerender")) {
m_isLinkPrerender = true;
+ } else if (equalIgnoringCase(*it, "next")) {
+ m_isLinkNext = true;
} else if (equalIgnoringCase(*it, "apple-touch-icon")) {
if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) {
m_iconType = TouchIcon;
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698