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

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

Issue 2806263002: Rename blink::AtomicString::Lower() to DeprecatedLower(). (Closed)
Patch Set: Update a comment 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTrackElement.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutQuote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698