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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 } | 644 } |
645 | 645 |
646 // text elements that are just empty whitespace should not be returned | 646 // text elements that are just empty whitespace should not be returned |
647 // FIXME(dmazzoni): we probably shouldn't ignore this if the style is 'p
re', or similar... | 647 // FIXME(dmazzoni): we probably shouldn't ignore this if the style is 'p
re', or similar... |
648 return renderText->text().impl()->containsOnlyWhitespace(); | 648 return renderText->text().impl()->containsOnlyWhitespace(); |
649 } | 649 } |
650 | 650 |
651 if (isHeading()) | 651 if (isHeading()) |
652 return false; | 652 return false; |
653 | 653 |
| 654 if (isLandmarkRelated()) |
| 655 return false; |
| 656 |
654 if (isLink()) | 657 if (isLink()) |
655 return false; | 658 return false; |
656 | 659 |
657 // all controls are accessible | 660 // all controls are accessible |
658 if (isControl()) | 661 if (isControl()) |
659 return false; | 662 return false; |
660 | 663 |
661 if (ariaRoleAttribute() != UnknownRole) | 664 if (ariaRoleAttribute() != UnknownRole) |
662 return false; | 665 return false; |
663 | 666 |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 if (label && label->renderer()) { | 2362 if (label && label->renderer()) { |
2360 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2363 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2361 result.unite(labelRect); | 2364 result.unite(labelRect); |
2362 } | 2365 } |
2363 } | 2366 } |
2364 | 2367 |
2365 return result; | 2368 return result; |
2366 } | 2369 } |
2367 | 2370 |
2368 } // namespace WebCore | 2371 } // namespace WebCore |
OLD | NEW |