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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp

Issue 2793913007: Switch to equalIgnoringASCIICase throughout modules/accessibility (Closed)
Patch Set: 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/modules/accessibility/AXTableCell.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
index 0b6cd6da146d8855cd071d867123671acc3af12a..5b3ea88b5fa5cda94305bcbf0bb68c7faaff9528 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp
@@ -54,14 +54,14 @@ bool AXTableCell::isTableHeaderCell() const {
bool AXTableCell::isRowHeaderCell() const {
const AtomicString& scope = getAttribute(scopeAttr);
- return equalIgnoringCase(scope, "row") ||
- equalIgnoringCase(scope, "rowgroup");
+ return equalIgnoringASCIICase(scope, "row") ||
+ equalIgnoringASCIICase(scope, "rowgroup");
}
bool AXTableCell::isColumnHeaderCell() const {
const AtomicString& scope = getAttribute(scopeAttr);
- return equalIgnoringCase(scope, "col") ||
- equalIgnoringCase(scope, "colgroup");
+ return equalIgnoringASCIICase(scope, "col") ||
+ equalIgnoringASCIICase(scope, "colgroup");
}
bool AXTableCell::computeAccessibilityIsIgnored(
@@ -225,13 +225,13 @@ SortDirection AXTableCell::getSortDirection() const {
getAOMPropertyOrARIAAttribute(AOMStringProperty::kSort);
if (ariaSort.isEmpty())
return SortDirectionUndefined;
- if (equalIgnoringCase(ariaSort, "none"))
+ if (equalIgnoringASCIICase(ariaSort, "none"))
return SortDirectionNone;
- if (equalIgnoringCase(ariaSort, "ascending"))
+ if (equalIgnoringASCIICase(ariaSort, "ascending"))
return SortDirectionAscending;
- if (equalIgnoringCase(ariaSort, "descending"))
+ if (equalIgnoringASCIICase(ariaSort, "descending"))
return SortDirectionDescending;
- if (equalIgnoringCase(ariaSort, "other"))
+ if (equalIgnoringASCIICase(ariaSort, "other"))
return SortDirectionOther;
return SortDirectionUndefined;
}

Powered by Google App Engine
This is Rietveld 408576698