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

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

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 for (const String& linkType : list) { 55 for (const String& linkType : list) {
56 if (equalIgnoringCase(linkType, "stylesheet")) { 56 if (equalIgnoringCase(linkType, "stylesheet")) {
57 if (!m_isImport) 57 if (!m_isImport)
58 m_isStyleSheet = true; 58 m_isStyleSheet = true;
59 } else if (equalIgnoringCase(linkType, "import")) { 59 } else if (equalIgnoringCase(linkType, "import")) {
60 if (!m_isStyleSheet) 60 if (!m_isStyleSheet)
61 m_isImport = true; 61 m_isImport = true;
62 } else if (equalIgnoringCase(linkType, "alternate")) { 62 } else if (equalIgnoringCase(linkType, "alternate")) {
63 m_isAlternate = true; 63 m_isAlternate = true;
64 } else if (equalIgnoringCase(linkType, "icon")) { 64 } else if (equalIgnoringCase(linkType, "icon")) {
65 // This also allows "shortcut icon" since we just ignore the non-standard "shortcut" token. 65 // This also allows "shortcut icon" since we just ignore the non-standard
66 // FIXME: This doesn't really follow the spec that requires "shortcut icon " to be the 66 // "shortcut" token.
67 // entire string http://www.whatwg.org/specs/web-apps/current-work/multipa ge/links.html#rel-icon 67 // FIXME: This doesn't really follow the spec that requires "shortcut
68 // icon" to be the entire string
69 // http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html# rel-icon
68 m_iconType = Favicon; 70 m_iconType = Favicon;
69 } else if (equalIgnoringCase(linkType, "prefetch")) { 71 } else if (equalIgnoringCase(linkType, "prefetch")) {
70 m_isLinkPrefetch = true; 72 m_isLinkPrefetch = true;
71 } else if (equalIgnoringCase(linkType, "dns-prefetch")) { 73 } else if (equalIgnoringCase(linkType, "dns-prefetch")) {
72 m_isDNSPrefetch = true; 74 m_isDNSPrefetch = true;
73 } else if (equalIgnoringCase(linkType, "preconnect")) { 75 } else if (equalIgnoringCase(linkType, "preconnect")) {
74 m_isPreconnect = true; 76 m_isPreconnect = true;
75 } else if (equalIgnoringCase(linkType, "preload")) { 77 } else if (equalIgnoringCase(linkType, "preload")) {
76 m_isLinkPreload = true; 78 m_isLinkPreload = true;
77 } else if (equalIgnoringCase(linkType, "prerender")) { 79 } else if (equalIgnoringCase(linkType, "prerender")) {
78 m_isLinkPrerender = true; 80 m_isLinkPrerender = true;
79 } else if (equalIgnoringCase(linkType, "next")) { 81 } else if (equalIgnoringCase(linkType, "next")) {
80 m_isLinkNext = true; 82 m_isLinkNext = true;
81 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) { 83 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) {
82 m_iconType = TouchIcon; 84 m_iconType = TouchIcon;
83 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) { 85 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) {
84 m_iconType = TouchPrecomposedIcon; 86 m_iconType = TouchPrecomposedIcon;
85 } else if (equalIgnoringCase(linkType, "manifest")) { 87 } else if (equalIgnoringCase(linkType, "manifest")) {
86 m_isManifest = true; 88 m_isManifest = true;
87 } else if (equalIgnoringCase(linkType, "serviceworker")) { 89 } else if (equalIgnoringCase(linkType, "serviceworker")) {
88 m_isServiceWorker = true; 90 m_isServiceWorker = true;
89 } 91 }
90 // Adding or removing a value here requires you to update RelList::supported Tokens() 92 // Adding or removing a value here requires you to update
93 // RelList::supportedTokens()
91 } 94 }
92 } 95 }
93 96
94 } // namespace blink 97 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/html/MediaDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698