| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 return HeadingRole; | 326 return HeadingRole; |
| 327 | 327 |
| 328 if (m_renderer->isSVGImage()) | 328 if (m_renderer->isSVGImage()) |
| 329 return ImageRole; | 329 return ImageRole; |
| 330 if (m_renderer->isSVGRoot()) | 330 if (m_renderer->isSVGRoot()) |
| 331 return SVGRootRole; | 331 return SVGRootRole; |
| 332 | 332 |
| 333 if (node && node->hasTagName(ddTag)) | 333 if (node && node->hasTagName(ddTag)) |
| 334 return DescriptionListDetailRole; | 334 return DescriptionListDetailRole; |
| 335 | 335 |
| 336 if (node && node->hasTagName(dlTag)) | |
| 337 return DescriptionListRole; | |
| 338 | |
| 339 if (node && node->hasTagName(dtTag)) | 336 if (node && node->hasTagName(dtTag)) |
| 340 return DescriptionListTermRole; | 337 return DescriptionListTermRole; |
| 341 | 338 |
| 342 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) | 339 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) |
| 343 return AnnotationRole; | 340 return AnnotationRole; |
| 344 | 341 |
| 345 // Table sections should be ignored. | 342 // Table sections should be ignored. |
| 346 if (m_renderer->isTableSection()) | 343 if (m_renderer->isTableSection()) |
| 347 return IgnoredRole; | 344 return IgnoredRole; |
| 348 | 345 |
| (...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 if (label && label->renderer()) { | 2344 if (label && label->renderer()) { |
| 2348 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2345 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2349 result.unite(labelRect); | 2346 result.unite(labelRect); |
| 2350 } | 2347 } |
| 2351 } | 2348 } |
| 2352 | 2349 |
| 2353 return result; | 2350 return result; |
| 2354 } | 2351 } |
| 2355 | 2352 |
| 2356 } // namespace blink | 2353 } // namespace blink |
| OLD | NEW |