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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXARIAGridCell.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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 29 matching lines...) Expand all
40 40
41 AXARIAGridCell::~AXARIAGridCell() {} 41 AXARIAGridCell::~AXARIAGridCell() {}
42 42
43 AXARIAGridCell* AXARIAGridCell::create(LayoutObject* layoutObject, 43 AXARIAGridCell* AXARIAGridCell::create(LayoutObject* layoutObject,
44 AXObjectCacheImpl& axObjectCache) { 44 AXObjectCacheImpl& axObjectCache) {
45 return new AXARIAGridCell(layoutObject, axObjectCache); 45 return new AXARIAGridCell(layoutObject, axObjectCache);
46 } 46 }
47 47
48 bool AXARIAGridCell::isAriaColumnHeader() const { 48 bool AXARIAGridCell::isAriaColumnHeader() const {
49 const AtomicString& role = getAttribute(HTMLNames::roleAttr); 49 const AtomicString& role = getAttribute(HTMLNames::roleAttr);
50 return equalIgnoringCase(role, "columnheader"); 50 return equalIgnoringASCIICase(role, "columnheader");
51 } 51 }
52 52
53 bool AXARIAGridCell::isAriaRowHeader() const { 53 bool AXARIAGridCell::isAriaRowHeader() const {
54 const AtomicString& role = getAttribute(HTMLNames::roleAttr); 54 const AtomicString& role = getAttribute(HTMLNames::roleAttr);
55 return equalIgnoringCase(role, "rowheader"); 55 return equalIgnoringASCIICase(role, "rowheader");
56 } 56 }
57 57
58 AXObject* AXARIAGridCell::parentTable() const { 58 AXObject* AXARIAGridCell::parentTable() const {
59 AXObject* parent = parentObjectUnignored(); 59 AXObject* parent = parentObjectUnignored();
60 if (!parent) 60 if (!parent)
61 return 0; 61 return 0;
62 62
63 if (parent->isAXTable()) 63 if (parent->isAXTable())
64 return parent; 64 return parent;
65 65
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 if (isAriaRowHeader()) 128 if (isAriaRowHeader())
129 return RowHeaderRole; 129 return RowHeaderRole;
130 130
131 if (isAriaColumnHeader()) 131 if (isAriaColumnHeader())
132 return ColumnHeaderRole; 132 return ColumnHeaderRole;
133 133
134 return CellRole; 134 return CellRole;
135 } 135 }
136 136
137 } // namespace blink 137 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698