OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |