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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 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 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 8e29187ea6eec847905387805b4ee732aa1aa519..1c48426460aebea80b55ef8143b0ab4b7b9831e8 100644
--- a/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
+++ b/third_party/WebKit/Source/core/html/LinkRelAttribute.cpp
@@ -53,40 +53,41 @@ LinkRelAttribute::LinkRelAttribute(const String& rel)
Vector<String> list;
rel_copy.Split(' ', list);
for (const String& link_type : list) {
- if (EqualIgnoringCase(link_type, "stylesheet")) {
+ if (DeprecatedEqualIgnoringCase(link_type, "stylesheet")) {
if (!is_import_)
is_style_sheet_ = true;
- } else if (EqualIgnoringCase(link_type, "import")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "import")) {
if (!is_style_sheet_)
is_import_ = true;
- } else if (EqualIgnoringCase(link_type, "alternate")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "alternate")) {
is_alternate_ = true;
- } else if (EqualIgnoringCase(link_type, "icon")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "icon")) {
// This also allows "shortcut icon" since we just ignore the non-standard
// "shortcut" token.
// FIXME: This doesn't really follow the spec that requires "shortcut
// icon" to be the entire string
// http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#rel-icon
icon_type_ = kFavicon;
- } else if (EqualIgnoringCase(link_type, "prefetch")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "prefetch")) {
is_link_prefetch_ = true;
- } else if (EqualIgnoringCase(link_type, "dns-prefetch")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "dns-prefetch")) {
is_dns_prefetch_ = true;
- } else if (EqualIgnoringCase(link_type, "preconnect")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "preconnect")) {
is_preconnect_ = true;
- } else if (EqualIgnoringCase(link_type, "preload")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "preload")) {
is_link_preload_ = true;
- } else if (EqualIgnoringCase(link_type, "prerender")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "prerender")) {
is_link_prerender_ = true;
- } else if (EqualIgnoringCase(link_type, "next")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "next")) {
is_link_next_ = true;
- } else if (EqualIgnoringCase(link_type, "apple-touch-icon")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "apple-touch-icon")) {
icon_type_ = kTouchIcon;
- } else if (EqualIgnoringCase(link_type, "apple-touch-icon-precomposed")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type,
+ "apple-touch-icon-precomposed")) {
icon_type_ = kTouchPrecomposedIcon;
- } else if (EqualIgnoringCase(link_type, "manifest")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "manifest")) {
is_manifest_ = true;
- } else if (EqualIgnoringCase(link_type, "serviceworker")) {
+ } else if (DeprecatedEqualIgnoringCase(link_type, "serviceworker")) {
is_service_worker_ = true;
}
// Adding or removing a value here requires you to update
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLUListElement.cpp ('k') | third_party/WebKit/Source/core/html/TextControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698