| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 unsigned colCount = m_columns.size(); | 462 unsigned colCount = m_columns.size(); |
| 463 for (unsigned k = 0; k < colCount; ++k) { | 463 for (unsigned k = 0; k < colCount; ++k) { |
| 464 AXObject* header = toAXTableColumn(m_columns[k].get())->headerObject(); | 464 AXObject* header = toAXTableColumn(m_columns[k].get())->headerObject(); |
| 465 if (!header) | 465 if (!header) |
| 466 continue; | 466 continue; |
| 467 headers.append(header); | 467 headers.append(header); |
| 468 } | 468 } |
| 469 } | 469 } |
| 470 | 470 |
| 471 void AXTable::rowHeaders(AccessibilityChildrenVector& headers) |
| 472 { |
| 473 if (!m_renderer) |
| 474 return; |
| 475 |
| 476 updateChildrenIfNecessary(); |
| 477 |
| 478 unsigned rowCount = m_rows.size(); |
| 479 for (unsigned r = 0; r < rowCount; r++) { |
| 480 if (AXObject* header = toAXTableRow(m_rows[r].get())->headerObject()) |
| 481 headers.append(header); |
| 482 } |
| 483 } |
| 484 |
| 471 void AXTable::cells(AXObject::AccessibilityChildrenVector& cells) | 485 void AXTable::cells(AXObject::AccessibilityChildrenVector& cells) |
| 472 { | 486 { |
| 473 if (!m_renderer) | 487 if (!m_renderer) |
| 474 return; | 488 return; |
| 475 | 489 |
| 476 updateChildrenIfNecessary(); | 490 updateChildrenIfNecessary(); |
| 477 | 491 |
| 478 int numRows = m_rows.size(); | 492 int numRows = m_rows.size(); |
| 479 for (int row = 0; row < numRows; ++row) { | 493 for (int row = 0; row < numRows; ++row) { |
| 480 AccessibilityChildrenVector rowChildren = m_rows[row]->children(); | 494 AccessibilityChildrenVector rowChildren = m_rows[row]->children(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 } | 584 } |
| 571 | 585 |
| 572 // try the standard | 586 // try the standard |
| 573 if (title.isEmpty()) | 587 if (title.isEmpty()) |
| 574 title = AXRenderObject::title(); | 588 title = AXRenderObject::title(); |
| 575 | 589 |
| 576 return title; | 590 return title; |
| 577 } | 591 } |
| 578 | 592 |
| 579 } // namespace blink | 593 } // namespace blink |
| OLD | NEW |