| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 return; | 324 return; |
| 325 } | 325 } |
| 326 | 326 |
| 327 ASSERT(!m_haveChildren); | 327 ASSERT(!m_haveChildren); |
| 328 | 328 |
| 329 m_haveChildren = true; | 329 m_haveChildren = true; |
| 330 if (!m_renderer || !m_renderer->isTable()) | 330 if (!m_renderer || !m_renderer->isTable()) |
| 331 return; | 331 return; |
| 332 | 332 |
| 333 RenderTable* table = toRenderTable(m_renderer); | 333 RenderTable* table = toRenderTable(m_renderer); |
| 334 AXObjectCache* axCache = m_renderer->document()->axObjectCache(); | 334 AXObjectCache* axCache = m_renderer->document().axObjectCache(); |
| 335 | 335 |
| 336 // Go through all the available sections to pull out the rows and add them a
s children. | 336 // Go through all the available sections to pull out the rows and add them a
s children. |
| 337 table->recalcSectionsIfNeeded(); | 337 table->recalcSectionsIfNeeded(); |
| 338 RenderTableSection* tableSection = table->topSection(); | 338 RenderTableSection* tableSection = table->topSection(); |
| 339 if (!tableSection) | 339 if (!tableSection) |
| 340 return; | 340 return; |
| 341 | 341 |
| 342 RenderTableSection* initialTableSection = tableSection; | 342 RenderTableSection* initialTableSection = tableSection; |
| 343 while (tableSection) { | 343 while (tableSection) { |
| 344 | 344 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 } | 541 } |
| 542 | 542 |
| 543 // try the standard | 543 // try the standard |
| 544 if (title.isEmpty()) | 544 if (title.isEmpty()) |
| 545 title = AccessibilityRenderObject::title(); | 545 title = AccessibilityRenderObject::title(); |
| 546 | 546 |
| 547 return title; | 547 return title; |
| 548 } | 548 } |
| 549 | 549 |
| 550 } // namespace WebCore | 550 } // namespace WebCore |
| OLD | NEW |