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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 | 635 |
636 if (roleValue() == MathRole) | 636 if (roleValue() == MathRole) |
637 return false; | 637 return false; |
638 | 638 |
639 if (roleValue() == MeterRole) | 639 if (roleValue() == MeterRole) |
640 return false; | 640 return false; |
641 | 641 |
642 if (roleValue() == RubyRole) | 642 if (roleValue() == RubyRole) |
643 return false; | 643 return false; |
644 | 644 |
| 645 if (roleValue() == TimeRole) |
| 646 return false; |
| 647 |
645 // if this element has aria attributes on it, it should not be ignored. | 648 // if this element has aria attributes on it, it should not be ignored. |
646 if (supportsARIAAttributes()) | 649 if (supportsARIAAttributes()) |
647 return false; | 650 return false; |
648 | 651 |
649 // <span> tags are inline tags and not meant to convey information if they h
ave no other aria | 652 // <span> tags are inline tags and not meant to convey information if they h
ave no other aria |
650 // information on them. If we don't ignore them, they may emit signals expec
ted to come from | 653 // information on them. If we don't ignore them, they may emit signals expec
ted to come from |
651 // their parent. In addition, because included spans are GroupRole objects,
and GroupRole | 654 // their parent. In addition, because included spans are GroupRole objects,
and GroupRole |
652 // objects are often containers with meaningful information, the inclusion o
f a span can have | 655 // objects are often containers with meaningful information, the inclusion o
f a span can have |
653 // the side effect of causing the immediate parent accessible to be ignored.
This is especially | 656 // the side effect of causing the immediate parent accessible to be ignored.
This is especially |
654 // problematic for platforms which have distinct roles for textual block ele
ments. | 657 // problematic for platforms which have distinct roles for textual block ele
ments. |
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2395 if (label && label->layoutObject()) { | 2398 if (label && label->layoutObject()) { |
2396 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2399 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2397 result.unite(labelRect); | 2400 result.unite(labelRect); |
2398 } | 2401 } |
2399 } | 2402 } |
2400 | 2403 |
2401 return result; | 2404 return result; |
2402 } | 2405 } |
2403 | 2406 |
2404 } // namespace blink | 2407 } // namespace blink |
OLD | NEW |