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

Side by Side Diff: third_party/WebKit/Source/core/xml/XPathFunctions.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. 3 * Copyright (C) 2006, 2009 Apple Inc.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 if (language_attribute) 635 if (language_attribute)
636 break; 636 break;
637 node = node->parentNode(); 637 node = node->parentNode();
638 } 638 }
639 639
640 if (!language_attribute) 640 if (!language_attribute)
641 return false; 641 return false;
642 642
643 String lang_value = language_attribute->Value(); 643 String lang_value = language_attribute->Value();
644 while (true) { 644 while (true) {
645 if (EqualIgnoringCase(lang_value, lang)) 645 if (DeprecatedEqualIgnoringCase(lang_value, lang))
646 return true; 646 return true;
647 647
648 // Remove suffixes one by one. 648 // Remove suffixes one by one.
649 size_t index = lang_value.ReverseFind('-'); 649 size_t index = lang_value.ReverseFind('-');
650 if (index == kNotFound) 650 if (index == kNotFound)
651 break; 651 break;
652 lang_value = lang_value.Left(index); 652 lang_value = lang_value.Left(index);
653 } 653 }
654 654
655 return false; 655 return false;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 return nullptr; 765 return nullptr;
766 766
767 Function* function = function_rec->factory_fn(); 767 Function* function = function_rec->factory_fn();
768 function->SetArguments(args); 768 function->SetArguments(args);
769 function->SetName(name); 769 function->SetName(name);
770 return function; 770 return function;
771 } 771 }
772 772
773 } // namespace XPath 773 } // namespace XPath
774 } // namespace blink 774 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/core/xml/XPathStep.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698