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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 if (node && node->hasTagName(addressTag)) | 420 if (node && node->hasTagName(addressTag)) |
421 return ContentInfoRole; | 421 return ContentInfoRole; |
422 | 422 |
423 if (node && node->hasTagName(dialogTag)) | 423 if (node && node->hasTagName(dialogTag)) |
424 return DialogRole; | 424 return DialogRole; |
425 | 425 |
426 // The HTML element should not be exposed as an element. That's what the Ren
derView element does. | 426 // The HTML element should not be exposed as an element. That's what the Ren
derView element does. |
427 if (isHTMLHtmlElement(node)) | 427 if (isHTMLHtmlElement(node)) |
428 return IgnoredRole; | 428 return IgnoredRole; |
429 | 429 |
430 if (node && node->hasTagName(iframeTag)) | 430 if (node && node->hasTagName(iframeTag)) { |
| 431 const AtomicString& ariaRole = getAttribute(roleAttr); |
| 432 if (ariaRole == "none" || ariaRole == "presentation") |
| 433 return IframePresentationalRole; |
431 return IframeRole; | 434 return IframeRole; |
| 435 } |
432 | 436 |
433 if (isEmbeddedObject()) | 437 if (isEmbeddedObject()) |
434 return EmbeddedObjectRole; | 438 return EmbeddedObjectRole; |
435 | 439 |
436 if (node && node->hasTagName(figcaptionTag)) | 440 if (node && node->hasTagName(figcaptionTag)) |
437 return FigcaptionRole; | 441 return FigcaptionRole; |
438 | 442 |
439 if (node && node->hasTagName(figureTag)) | 443 if (node && node->hasTagName(figureTag)) |
440 return FigureRole; | 444 return FigureRole; |
441 | 445 |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 if (label && label->renderer()) { | 2489 if (label && label->renderer()) { |
2486 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2490 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2487 result.unite(labelRect); | 2491 result.unite(labelRect); |
2488 } | 2492 } |
2489 } | 2493 } |
2490 | 2494 |
2491 return result; | 2495 return result; |
2492 } | 2496 } |
2493 | 2497 |
2494 } // namespace blink | 2498 } // namespace blink |
OLD | NEW |