| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 { | 63 { |
| 64 // this will be filled in when addChildren is called | 64 // this will be filled in when addChildren is called |
| 65 return m_columnRect; | 65 return m_columnRect; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void AXTableColumn::headerObjectsForColumn(AXObjectVector& headers) | 68 void AXTableColumn::headerObjectsForColumn(AXObjectVector& headers) |
| 69 { | 69 { |
| 70 if (!m_parent) | 70 if (!m_parent) |
| 71 return; | 71 return; |
| 72 | 72 |
| 73 LayoutObject* layoutObject = m_parent->layoutObject(); | 73 LayoutObject* layoutObject = m_parent->getLayoutObject(); |
| 74 if (!layoutObject) | 74 if (!layoutObject) |
| 75 return; | 75 return; |
| 76 | 76 |
| 77 if (!m_parent->isAXTable()) | 77 if (!m_parent->isAXTable()) |
| 78 return; | 78 return; |
| 79 | 79 |
| 80 if (toAXTable(m_parent)->isAriaTable()) { | 80 if (toAXTable(m_parent)->isAriaTable()) { |
| 81 for (const auto& cell : children()) { | 81 for (const auto& cell : children()) { |
| 82 if (cell->roleValue() == ColumnHeaderRole) | 82 if (cell->roleValue() == ColumnHeaderRole) |
| 83 headers.append(cell); | 83 headers.append(cell); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // make sure the last one isn't the same as this one (rowspan cells) | 154 // make sure the last one isn't the same as this one (rowspan cells) |
| 155 if (m_children.size() > 0 && m_children.last() == cell) | 155 if (m_children.size() > 0 && m_children.last() == cell) |
| 156 continue; | 156 continue; |
| 157 | 157 |
| 158 m_children.append(cell); | 158 m_children.append(cell); |
| 159 m_columnRect.unite(cell->elementRect()); | 159 m_columnRect.unite(cell->elementRect()); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace blink | 163 } // namespace blink |
| OLD | NEW |