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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.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/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index 70ac5ffad5d5ffda8a71e84f9e130a3f728caa10..0c17502098641388c189e5470a9e77f7a43e7779 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -262,7 +262,7 @@ bool nodeHasRole(Node* node, const String& role) {
if (!node || !node->isElementNode())
return false;
- return equalIgnoringCase(toElement(node)->getAttribute(roleAttr), role);
+ return equalIgnoringASCIICase(toElement(node)->getAttribute(roleAttr), role);
}
AXObject* AXObjectCacheImpl::createFromRenderer(LayoutObject* layoutObject) {
@@ -1090,8 +1090,8 @@ bool isNodeAriaVisible(Node* node) {
if (!node->isElementNode())
return false;
- return equalIgnoringCase(toElement(node)->getAttribute(aria_hiddenAttr),
- "false");
+ return equalIgnoringASCIICase(toElement(node)->getAttribute(aria_hiddenAttr),
+ "false");
}
void AXObjectCacheImpl::postPlatformNotification(AXObject* obj,

Powered by Google App Engine
This is Rietveld 408576698