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