| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const AtomicString& scope = getAttribute(scopeAttr); | 61 const AtomicString& scope = getAttribute(scopeAttr); |
| 62 return equalIgnoringCase(scope, "row") || equalIgnoringCase(scope, "rowgroup
"); | 62 return equalIgnoringCase(scope, "row") || equalIgnoringCase(scope, "rowgroup
"); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool AXTableCell::isColumnHeaderCell() const | 65 bool AXTableCell::isColumnHeaderCell() const |
| 66 { | 66 { |
| 67 const AtomicString& scope = getAttribute(scopeAttr); | 67 const AtomicString& scope = getAttribute(scopeAttr); |
| 68 return equalIgnoringCase(scope, "col") || equalIgnoringCase(scope, "colgroup
"); | 68 return equalIgnoringCase(scope, "col") || equalIgnoringCase(scope, "colgroup
"); |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool AXTableCell::computeAccessibilityIsIgnored() const | 71 bool AXTableCell::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::Array<Ty
peBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 72 { | 72 { |
| 73 AXObjectInclusion decision = defaultObjectInclusion(); | 73 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons); |
| 74 if (decision == IncludeObject) | 74 if (decision == IncludeObject) |
| 75 return false; | 75 return false; |
| 76 if (decision == IgnoreObject) | 76 if (decision == IgnoreObject) |
| 77 return true; | 77 return true; |
| 78 | 78 |
| 79 if (!isTableCell()) | 79 if (!isTableCell()) |
| 80 return AXLayoutObject::computeAccessibilityIsIgnored(); | 80 return AXLayoutObject::computeAccessibilityIsIgnored(ignoredReasons); |
| 81 | 81 |
| 82 return false; | 82 return false; |
| 83 } | 83 } |
| 84 | 84 |
| 85 AXObject* AXTableCell::parentTable() const | 85 AXObject* AXTableCell::parentTable() const |
| 86 { | 86 { |
| 87 if (!m_layoutObject || !m_layoutObject->isTableCell()) | 87 if (!m_layoutObject || !m_layoutObject->isTableCell()) |
| 88 return 0; | 88 return 0; |
| 89 | 89 |
| 90 // If the document no longer exists, we might not have an axObjectCache. | 90 // If the document no longer exists, we might not have an axObjectCache. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 return 0; | 249 return 0; |
| 250 | 250 |
| 251 Node* cellElement = headerCell->node(); | 251 Node* cellElement = headerCell->node(); |
| 252 if (!cellElement || !cellElement->hasTagName(thTag)) | 252 if (!cellElement || !cellElement->hasTagName(thTag)) |
| 253 return 0; | 253 return 0; |
| 254 | 254 |
| 255 return axObjectCache()->getOrCreate(headerCell); | 255 return axObjectCache()->getOrCreate(headerCell); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace blink | 258 } // namespace blink |
| OLD | NEW |