| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 typedef HashMap<AtomicString, QualifiedName> PrefixedNameToQualifiedNameMap; | 439 typedef HashMap<AtomicString, QualifiedName> PrefixedNameToQualifiedNameMap; |
| 440 | 440 |
| 441 template <typename TableQualifiedName> | 441 template <typename TableQualifiedName> |
| 442 static void MapLoweredLocalNameToName(PrefixedNameToQualifiedNameMap* map, | 442 static void MapLoweredLocalNameToName(PrefixedNameToQualifiedNameMap* map, |
| 443 const TableQualifiedName* const* names, | 443 const TableQualifiedName* const* names, |
| 444 size_t length) { | 444 size_t length) { |
| 445 for (size_t i = 0; i < length; ++i) { | 445 for (size_t i = 0; i < length; ++i) { |
| 446 const QualifiedName& name = *names[i]; | 446 const QualifiedName& name = *names[i]; |
| 447 const AtomicString& local_name = name.LocalName(); | 447 const AtomicString& local_name = name.LocalName(); |
| 448 AtomicString lowered_local_name = local_name.Lower(); | 448 AtomicString lowered_local_name = local_name.DeprecatedLower(); |
| 449 if (lowered_local_name != local_name) | 449 if (lowered_local_name != local_name) |
| 450 map->insert(lowered_local_name, name); | 450 map->insert(lowered_local_name, name); |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 | 453 |
| 454 static void AdjustSVGTagNameCase(AtomicHTMLToken* token) { | 454 static void AdjustSVGTagNameCase(AtomicHTMLToken* token) { |
| 455 static PrefixedNameToQualifiedNameMap* case_map = 0; | 455 static PrefixedNameToQualifiedNameMap* case_map = 0; |
| 456 if (!case_map) { | 456 if (!case_map) { |
| 457 case_map = new PrefixedNameToQualifiedNameMap; | 457 case_map = new PrefixedNameToQualifiedNameMap; |
| 458 std::unique_ptr<const SVGQualifiedName* []> svg_tags = | 458 std::unique_ptr<const SVGQualifiedName* []> svg_tags = |
| (...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2771 DEFINE_STRINGIFY(kAfterFramesetMode) | 2771 DEFINE_STRINGIFY(kAfterFramesetMode) |
| 2772 DEFINE_STRINGIFY(kAfterAfterBodyMode) | 2772 DEFINE_STRINGIFY(kAfterAfterBodyMode) |
| 2773 DEFINE_STRINGIFY(kAfterAfterFramesetMode) | 2773 DEFINE_STRINGIFY(kAfterAfterFramesetMode) |
| 2774 #undef DEFINE_STRINGIFY | 2774 #undef DEFINE_STRINGIFY |
| 2775 } | 2775 } |
| 2776 return "<unknown>"; | 2776 return "<unknown>"; |
| 2777 } | 2777 } |
| 2778 #endif | 2778 #endif |
| 2779 | 2779 |
| 2780 } // namespace blink | 2780 } // namespace blink |
| OLD | NEW |