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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 // Check first if any of the common reasons cause this element to be ignored. | 494 // Check first if any of the common reasons cause this element to be ignored. |
495 // Then process other use cases that need to be applied to all the various | 495 // Then process other use cases that need to be applied to all the various |
496 // roles that AXLayoutObjects take on. | 496 // roles that AXLayoutObjects take on. |
497 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons); | 497 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons); |
498 if (decision == IncludeObject) | 498 if (decision == IncludeObject) |
499 return false; | 499 return false; |
500 if (decision == IgnoreObject) | 500 if (decision == IgnoreObject) |
501 return true; | 501 return true; |
502 | 502 |
503 if (m_layoutObject->isAnonymousBlock()) | |
504 return true; | |
505 | |
506 // If this element is within a parent that cannot have children, it should not | 503 // If this element is within a parent that cannot have children, it should not |
507 // be exposed. | 504 // be exposed. |
508 if (isDescendantOfLeafNode()) { | 505 if (isDescendantOfLeafNode()) { |
509 if (ignoredReasons) | 506 if (ignoredReasons) |
510 ignoredReasons->append( | 507 ignoredReasons->append( |
511 IgnoredReason(AXAncestorIsLeafNode, leafNodeAncestor())); | 508 IgnoredReason(AXAncestorIsLeafNode, leafNodeAncestor())); |
512 return true; | 509 return true; |
513 } | 510 } |
514 | 511 |
515 if (roleValue() == IgnoredRole) { | 512 if (roleValue() == IgnoredRole) { |
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 | 2443 |
2447 bool AXLayoutObject::elementAttributeValue( | 2444 bool AXLayoutObject::elementAttributeValue( |
2448 const QualifiedName& attributeName) const { | 2445 const QualifiedName& attributeName) const { |
2449 if (!m_layoutObject) | 2446 if (!m_layoutObject) |
2450 return false; | 2447 return false; |
2451 | 2448 |
2452 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2449 return equalIgnoringCase(getAttribute(attributeName), "true"); |
2453 } | 2450 } |
2454 | 2451 |
2455 } // namespace blink | 2452 } // namespace blink |
OLD | NEW |