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

Side by Side Diff: third_party/WebKit/Source/core/html/LinkRelAttribute.cpp

Issue 2173953002: Remove LinkPreconnect runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } else if (equalIgnoringCase(linkType, "icon")) { 67 } else if (equalIgnoringCase(linkType, "icon")) {
68 // This also allows "shortcut icon" since we just ignore the non-sta ndard "shortcut" token. 68 // This also allows "shortcut icon" since we just ignore the non-sta ndard "shortcut" token.
69 // FIXME: This doesn't really follow the spec that requires "shortcu t icon" to be the 69 // FIXME: This doesn't really follow the spec that requires "shortcu t icon" to be the
70 // entire string http://www.whatwg.org/specs/web-apps/current-work/m ultipage/links.html#rel-icon 70 // entire string http://www.whatwg.org/specs/web-apps/current-work/m ultipage/links.html#rel-icon
71 m_iconType = Favicon; 71 m_iconType = Favicon;
72 } else if (equalIgnoringCase(linkType, "prefetch")) { 72 } else if (equalIgnoringCase(linkType, "prefetch")) {
73 m_isLinkPrefetch = true; 73 m_isLinkPrefetch = true;
74 } else if (equalIgnoringCase(linkType, "dns-prefetch")) { 74 } else if (equalIgnoringCase(linkType, "dns-prefetch")) {
75 m_isDNSPrefetch = true; 75 m_isDNSPrefetch = true;
76 } else if (equalIgnoringCase(linkType, "preconnect")) { 76 } else if (equalIgnoringCase(linkType, "preconnect")) {
77 if (RuntimeEnabledFeatures::linkPreconnectEnabled()) 77 m_isPreconnect = true;
78 m_isPreconnect = true;
79 } else if (equalIgnoringCase(linkType, "preload")) { 78 } else if (equalIgnoringCase(linkType, "preload")) {
80 if (RuntimeEnabledFeatures::linkPreloadEnabled()) 79 if (RuntimeEnabledFeatures::linkPreloadEnabled())
81 m_isLinkPreload = true; 80 m_isLinkPreload = true;
82 } else if (equalIgnoringCase(linkType, "prerender")) { 81 } else if (equalIgnoringCase(linkType, "prerender")) {
83 m_isLinkPrerender = true; 82 m_isLinkPrerender = true;
84 } else if (equalIgnoringCase(linkType, "next")) { 83 } else if (equalIgnoringCase(linkType, "next")) {
85 m_isLinkNext = true; 84 m_isLinkNext = true;
86 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) { 85 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) {
87 m_iconType = TouchIcon; 86 m_iconType = TouchIcon;
88 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) { 87 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) {
89 m_iconType = TouchPrecomposedIcon; 88 m_iconType = TouchPrecomposedIcon;
90 } else if (equalIgnoringCase(linkType, "manifest")) { 89 } else if (equalIgnoringCase(linkType, "manifest")) {
91 m_isManifest = true; 90 m_isManifest = true;
92 } else if (equalIgnoringCase(linkType, "serviceworker")) { 91 } else if (equalIgnoringCase(linkType, "serviceworker")) {
93 m_isServiceWorker = true; 92 m_isServiceWorker = true;
94 } 93 }
95 // Adding or removing a value here requires you to update RelList::suppo rtedTokens() 94 // Adding or removing a value here requires you to update RelList::suppo rtedTokens()
96 } 95 }
97 } 96 }
98 97
99 } // namespace blink 98 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698