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