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

Side by Side 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 unified diff | Download patch
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 m_iconType = Favicon; 73 m_iconType = Favicon;
74 } else if (equalIgnoringCase(linkType, "prefetch")) { 74 } else if (equalIgnoringCase(linkType, "prefetch")) {
75 m_isLinkPrefetch = true; 75 m_isLinkPrefetch = true;
76 } else if (equalIgnoringCase(linkType, "dns-prefetch")) { 76 } else if (equalIgnoringCase(linkType, "dns-prefetch")) {
77 m_isDNSPrefetch = true; 77 m_isDNSPrefetch = true;
78 } else if (equalIgnoringCase(linkType, "preconnect")) { 78 } else if (equalIgnoringCase(linkType, "preconnect")) {
79 if (RuntimeEnabledFeatures::linkPreconnectEnabled()) 79 if (RuntimeEnabledFeatures::linkPreconnectEnabled())
80 m_isPreconnect = true; 80 m_isPreconnect = true;
81 } else if (equalIgnoringCase(linkType, "subresource")) { 81 } else if (equalIgnoringCase(linkType, "subresource")) {
82 m_isLinkSubresource = true; 82 m_isLinkSubresource = true;
83 } else if (equalIgnoringCase(linkType, "preload")) {
84 if (RuntimeEnabledFeatures::linkPreloadEnabled())
85 m_isLinkPreload = true;
83 } else if (equalIgnoringCase(linkType, "prerender")) { 86 } else if (equalIgnoringCase(linkType, "prerender")) {
84 m_isLinkPrerender = true; 87 m_isLinkPrerender = true;
85 } else if (equalIgnoringCase(linkType, "next")) { 88 } else if (equalIgnoringCase(linkType, "next")) {
86 m_isLinkNext = true; 89 m_isLinkNext = true;
87 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) { 90 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) {
88 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) 91 if (RuntimeEnabledFeatures::touchIconLoadingEnabled())
89 m_iconType = TouchIcon; 92 m_iconType = TouchIcon;
90 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) { 93 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) {
91 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) 94 if (RuntimeEnabledFeatures::touchIconLoadingEnabled())
92 m_iconType = TouchPrecomposedIcon; 95 m_iconType = TouchPrecomposedIcon;
93 } else if (equalIgnoringCase(linkType, "manifest")) { 96 } else if (equalIgnoringCase(linkType, "manifest")) {
94 m_isManifest = true; 97 m_isManifest = true;
95 } else if (equalIgnoringCase(rel, "transition-exiting-stylesheet")) { 98 } else if (equalIgnoringCase(rel, "transition-exiting-stylesheet")) {
96 if (RuntimeEnabledFeatures::navigationTransitionsEnabled()) 99 if (RuntimeEnabledFeatures::navigationTransitionsEnabled())
97 m_isTransitionExitingStylesheet = true; 100 m_isTransitionExitingStylesheet = true;
98 } else if (equalIgnoringCase(linkType, "default-presentation")) { 101 } else if (equalIgnoringCase(linkType, "default-presentation")) {
99 if (RuntimeEnabledFeatures::presentationEnabled()) 102 if (RuntimeEnabledFeatures::presentationEnabled())
100 m_isDefaultPresentation = true; 103 m_isDefaultPresentation = true;
101 } 104 }
102 } 105 }
103 } 106 }
104 107
105 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698