OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 { | 523 { |
524 if (!node) | 524 if (!node) |
525 return 0; | 525 return 0; |
526 | 526 |
527 AXObjectCache* cache = node->document().axObjectCache(); | 527 AXObjectCache* cache = node->document().axObjectCache(); |
528 AXObject* accessibleObject = cache->getOrCreate(node->renderer()); | 528 AXObject* accessibleObject = cache->getOrCreate(node->renderer()); |
529 while (accessibleObject && accessibleObject->accessibilityIsIgnored()) { | 529 while (accessibleObject && accessibleObject->accessibilityIsIgnored()) { |
530 node = NodeTraversal::next(*node); | 530 node = NodeTraversal::next(*node); |
531 | 531 |
532 while (node && !node->renderer()) | 532 while (node && !node->renderer()) |
533 node = NodeTraversal::nextSkippingChildren(node); | 533 node = NodeTraversal::nextSkippingChildren(*node); |
534 | 534 |
535 if (!node) | 535 if (!node) |
536 return 0; | 536 return 0; |
537 | 537 |
538 accessibleObject = cache->getOrCreate(node->renderer()); | 538 accessibleObject = cache->getOrCreate(node->renderer()); |
539 } | 539 } |
540 | 540 |
541 return accessibleObject; | 541 return accessibleObject; |
542 } | 542 } |
543 | 543 |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 return ToggleButtonRole; | 898 return ToggleButtonRole; |
899 if (ariaHasPopup()) | 899 if (ariaHasPopup()) |
900 return PopUpButtonRole; | 900 return PopUpButtonRole; |
901 // We don't contemplate RadioButtonRole, as it depends on the input | 901 // We don't contemplate RadioButtonRole, as it depends on the input |
902 // type. | 902 // type. |
903 | 903 |
904 return ButtonRole; | 904 return ButtonRole; |
905 } | 905 } |
906 | 906 |
907 } // namespace WebCore | 907 } // namespace WebCore |
OLD | NEW |