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 |
505 // If this element is within a parent that cannot have children, it should not | 508 // If this element is within a parent that cannot have children, it should not |
506 // be exposed. | 509 // be exposed. |
507 if (isDescendantOfLeafNode()) { | 510 if (isDescendantOfLeafNode()) { |
508 if (ignoredReasons) | 511 if (ignoredReasons) |
509 ignoredReasons->append( | 512 ignoredReasons->append( |
510 IgnoredReason(AXAncestorIsLeafNode, leafNodeAncestor())); | 513 IgnoredReason(AXAncestorIsLeafNode, leafNodeAncestor())); |
511 return true; | 514 return true; |
512 } | 515 } |
513 | 516 |
514 if (roleValue() == IgnoredRole) { | 517 if (roleValue() == IgnoredRole) { |
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2445 | 2448 |
2446 bool AXLayoutObject::elementAttributeValue( | 2449 bool AXLayoutObject::elementAttributeValue( |
2447 const QualifiedName& attributeName) const { | 2450 const QualifiedName& attributeName) const { |
2448 if (!m_layoutObject) | 2451 if (!m_layoutObject) |
2449 return false; | 2452 return false; |
2450 | 2453 |
2451 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2454 return equalIgnoringCase(getAttribute(attributeName), "true"); |
2452 } | 2455 } |
2453 | 2456 |
2454 } // namespace blink | 2457 } // namespace blink |
OLD | NEW |