| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 return DescriptionListTermRole; | 367 return DescriptionListTermRole; |
| 368 | 368 |
| 369 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) | 369 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) |
| 370 return AnnotationRole; | 370 return AnnotationRole; |
| 371 | 371 |
| 372 // Table sections should be ignored. | 372 // Table sections should be ignored. |
| 373 if (m_renderer->isTableSection()) | 373 if (m_renderer->isTableSection()) |
| 374 return IgnoredRole; | 374 return IgnoredRole; |
| 375 | 375 |
| 376 if (m_renderer->isHR()) | 376 if (m_renderer->isHR()) |
| 377 return HorizontalRuleRole; | 377 return SplitterRole; |
| 378 | 378 |
| 379 if (isHTMLOutputElement(node)) | 379 if (isHTMLOutputElement(node)) |
| 380 return StatusRole; | 380 return StatusRole; |
| 381 | 381 |
| 382 if (isHTMLParagraphElement(node)) | 382 if (isHTMLParagraphElement(node)) |
| 383 return ParagraphRole; | 383 return ParagraphRole; |
| 384 | 384 |
| 385 if (isHTMLLabelElement(node)) | 385 if (isHTMLLabelElement(node)) |
| 386 return LabelRole; | 386 return LabelRole; |
| 387 | 387 |
| (...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 if (label && label->renderer()) { | 2395 if (label && label->renderer()) { |
| 2396 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2396 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2397 result.unite(labelRect); | 2397 result.unite(labelRect); |
| 2398 } | 2398 } |
| 2399 } | 2399 } |
| 2400 | 2400 |
| 2401 return result; | 2401 return result; |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 } // namespace blink | 2404 } // namespace blink |
| OLD | NEW |