Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 104583006: Don't ignore landmark and related AXObjects, because they should be exposed to (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/accessibility/AXObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698