| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 bool AXTableRow::isTableRow() const | 66 bool AXTableRow::isTableRow() const |
| 67 { | 67 { |
| 68 AXObject* table = parentTable(); | 68 AXObject* table = parentTable(); |
| 69 if (!table || !table->isAXTable()) | 69 if (!table || !table->isAXTable()) |
| 70 return false; | 70 return false; |
| 71 | 71 |
| 72 return true; | 72 return true; |
| 73 } | 73 } |
| 74 | 74 |
| 75 bool AXTableRow::computeAccessibilityIsIgnored() const | 75 bool AXTableRow::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::Array<Typ
eBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 76 { | 76 { |
| 77 AXObjectInclusion decision = defaultObjectInclusion(); | 77 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons); |
| 78 if (decision == IncludeObject) | 78 if (decision == IncludeObject) |
| 79 return false; | 79 return false; |
| 80 if (decision == IgnoreObject) | 80 if (decision == IgnoreObject) |
| 81 return true; | 81 return true; |
| 82 | 82 |
| 83 if (!isTableRow()) | 83 if (!isTableRow()) |
| 84 return AXLayoutObject::computeAccessibilityIsIgnored(); | 84 return AXLayoutObject::computeAccessibilityIsIgnored(ignoredReasons); |
| 85 | 85 |
| 86 return false; | 86 return false; |
| 87 } | 87 } |
| 88 | 88 |
| 89 AXObject* AXTableRow::parentTable() const | 89 AXObject* AXTableRow::parentTable() const |
| 90 { | 90 { |
| 91 AXObject* parent = parentObjectUnignored(); | 91 AXObject* parent = parentObjectUnignored(); |
| 92 if (!parent || !parent->isAXTable()) | 92 if (!parent || !parent->isAXTable()) |
| 93 return 0; | 93 return 0; |
| 94 | 94 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 113 for (const auto& cell : children()) { | 113 for (const auto& cell : children()) { |
| 114 if (!cell->isTableCell()) | 114 if (!cell->isTableCell()) |
| 115 continue; | 115 continue; |
| 116 | 116 |
| 117 if (toAXTableCell(cell.get())->scanToDecideHeaderRole() == RowHeaderRole
) | 117 if (toAXTableCell(cell.get())->scanToDecideHeaderRole() == RowHeaderRole
) |
| 118 headers.append(cell); | 118 headers.append(cell); |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| OLD | NEW |