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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElement.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void V0CustomElement::DidFinishLoadingImport(Document& master) { 50 void V0CustomElement::DidFinishLoadingImport(Document& master) {
51 master.CustomElementMicrotaskRunQueue()->RequestDispatchIfNeeded(); 51 master.CustomElementMicrotaskRunQueue()->RequestDispatchIfNeeded();
52 } 52 }
53 53
54 Vector<AtomicString>& V0CustomElement::EmbedderCustomElementNames() { 54 Vector<AtomicString>& V0CustomElement::EmbedderCustomElementNames() {
55 DEFINE_STATIC_LOCAL(Vector<AtomicString>, names, ()); 55 DEFINE_STATIC_LOCAL(Vector<AtomicString>, names, ());
56 return names; 56 return names;
57 } 57 }
58 58
59 void V0CustomElement::AddEmbedderCustomElementName(const AtomicString& name) { 59 void V0CustomElement::AddEmbedderCustomElementName(const AtomicString& name) {
60 AtomicString lower = name.Lower(); 60 AtomicString lower = name.DeprecatedLower();
61 if (IsValidName(lower, kEmbedderNames)) 61 if (IsValidName(lower, kEmbedderNames))
62 return; 62 return;
63 EmbedderCustomElementNames().push_back(lower); 63 EmbedderCustomElementNames().push_back(lower);
64 } 64 }
65 65
66 static inline bool IsValidNCName(const AtomicString& name) { 66 static inline bool IsValidNCName(const AtomicString& name) {
67 if (kNotFound != name.Find(':')) 67 if (kNotFound != name.Find(':'))
68 return false; 68 return false;
69 69
70 if (!name.GetString().Is8Bit()) { 70 if (!name.GetString().Is8Bit()) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 break; 157 break;
158 158
159 case Element::kV0WaitingForUpgrade: 159 case Element::kV0WaitingForUpgrade:
160 case Element::kV0Upgraded: 160 case Element::kV0Upgraded:
161 V0CustomElementObserver::NotifyElementWasDestroyed(element); 161 V0CustomElementObserver::NotifyElementWasDestroyed(element);
162 break; 162 break;
163 } 163 }
164 } 164 }
165 165
166 } // namespace blink 166 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698