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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 67fb65955af32d986edfbf332f07587f0a15ed9f..7212aea224182894bfb9fd91112c140b5354895b 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1243,7 +1243,7 @@ void Element::setAttribute(const AtomicString& local_name,
SynchronizeAttribute(local_name);
const AtomicString& case_adjusted_local_name =
- ShouldIgnoreAttributeCase() ? local_name.Lower() : local_name;
+ ShouldIgnoreAttributeCase() ? local_name.DeprecatedLower() : local_name;
if (!GetElementData()) {
SetAttributeInternal(
@@ -2629,7 +2629,8 @@ void Element::removeAttribute(const AtomicString& name) {
if (!GetElementData())
return;
- AtomicString local_name = ShouldIgnoreAttributeCase() ? name.Lower() : name;
+ AtomicString local_name =
+ ShouldIgnoreAttributeCase() ? name.DeprecatedLower() : name;
size_t index = GetElementData()->Attributes().FindIndex(local_name, false);
if (index == kNotFound) {
if (UNLIKELY(local_name == styleAttr) &&
@@ -2674,7 +2675,8 @@ bool Element::hasAttribute(const AtomicString& local_name) const {
return false;
SynchronizeAttribute(local_name);
return GetElementData()->Attributes().FindIndex(
- ShouldIgnoreAttributeCase() ? local_name.Lower() : local_name,
+ ShouldIgnoreAttributeCase() ? local_name.DeprecatedLower()
+ : local_name,
false) != kNotFound;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698