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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 columnCount = rowCellCount; | 67 columnCount = rowCellCount; |
68 | 68 |
69 row->setRowIndex((int)m_rows.size()); | 69 row->setRowIndex((int)m_rows.size()); |
70 m_rows.append(row); | 70 m_rows.append(row); |
71 | 71 |
72 // Try adding the row if it's not ignoring accessibility, | 72 // Try adding the row if it's not ignoring accessibility, |
73 // otherwise add its children (the cells) as the grid's children. | 73 // otherwise add its children (the cells) as the grid's children. |
74 if (!row->accessibilityIsIgnored()) | 74 if (!row->accessibilityIsIgnored()) |
75 m_children.append(row); | 75 m_children.append(row); |
76 else | 76 else |
77 m_children.append(row->children()); | 77 m_children.appendVector(row->children()); |
78 | 78 |
79 appendedRows.add(row); | 79 appendedRows.add(row); |
80 return true; | 80 return true; |
81 } | 81 } |
82 | 82 |
83 void AXARIAGrid::addChildren() | 83 void AXARIAGrid::addChildren() |
84 { | 84 { |
85 ASSERT(!m_haveChildren); | 85 ASSERT(!m_haveChildren); |
86 | 86 |
87 if (!isAXTable()) { | 87 if (!isAXTable()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (!column->accessibilityIsIgnored()) | 124 if (!column->accessibilityIsIgnored()) |
125 m_children.append(column); | 125 m_children.append(column); |
126 } | 126 } |
127 | 127 |
128 AXObject* headerContainerObject = headerContainer(); | 128 AXObject* 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 |