| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 if (!isAccessibilityTable()) { | 87 if (!isAccessibilityTable()) { |
| 88 AccessibilityRenderObject::addChildren(); | 88 AccessibilityRenderObject::addChildren(); |
| 89 return; | 89 return; |
| 90 } | 90 } |
| 91 | 91 |
| 92 m_haveChildren = true; | 92 m_haveChildren = true; |
| 93 if (!m_renderer) | 93 if (!m_renderer) |
| 94 return; | 94 return; |
| 95 | 95 |
| 96 AXObjectCache* axCache = m_renderer->document()->axObjectCache(); | 96 AXObjectCache* axCache = m_renderer->document().axObjectCache(); |
| 97 | 97 |
| 98 // add only rows that are labeled as aria rows | 98 // add only rows that are labeled as aria rows |
| 99 HashSet<AccessibilityObject*> appendedRows; | 99 HashSet<AccessibilityObject*> appendedRows; |
| 100 unsigned columnCount = 0; | 100 unsigned columnCount = 0; |
| 101 for (RefPtr<AccessibilityObject> child = firstChild(); child; child = child-
>nextSibling()) { | 101 for (RefPtr<AccessibilityObject> child = firstChild(); child; child = child-
>nextSibling()) { |
| 102 | 102 |
| 103 if (!addTableCellChild(child.get(), appendedRows, columnCount)) { | 103 if (!addTableCellChild(child.get(), appendedRows, columnCount)) { |
| 104 | 104 |
| 105 // in case the render tree doesn't match the expected ARIA hierarchy
, look at the children | 105 // in case the render tree doesn't match the expected ARIA hierarchy
, look at the children |
| 106 if (!child->hasChildren()) | 106 if (!child->hasChildren()) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 124 if (!column->accessibilityIsIgnored()) | 124 if (!column->accessibilityIsIgnored()) |
| 125 m_children.append(column); | 125 m_children.append(column); |
| 126 } | 126 } |
| 127 | 127 |
| 128 AccessibilityObject* headerContainerObject = headerContainer(); | 128 AccessibilityObject* headerContainerObject = headerContainer(); |
| 129 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored(
)) | 129 if (headerContainerObject && !headerContainerObject->accessibilityIsIgnored(
)) |
| 130 m_children.append(headerContainerObject); | 130 m_children.append(headerContainerObject); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace WebCore | 133 } // namespace WebCore |
| OLD | NEW |