| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |