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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored
Reasons) const | 591 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored
Reasons) const |
592 { | 592 { |
593 // The following cases can apply to any element that's a subclass of AXLayou
tObject. | 593 // The following cases can apply to any element that's a subclass of AXLayou
tObject. |
594 | 594 |
595 if (!m_layoutObject) { | 595 if (!m_layoutObject) { |
596 if (ignoredReasons) | 596 if (ignoredReasons) |
597 ignoredReasons->append(IgnoredReason(AXNotRendered)); | 597 ignoredReasons->append(IgnoredReason(AXNotRendered)); |
598 return IgnoreObject; | 598 return IgnoreObject; |
599 } | 599 } |
600 | 600 |
601 if (m_layoutObject->style()->visibility() != VISIBLE) { | 601 if (m_layoutObject->style()->visibility() != EVisibility::Visible) { |
602 // aria-hidden is meant to override visibility as the determinant in AX
hierarchy inclusion. | 602 // aria-hidden is meant to override visibility as the determinant in AX
hierarchy inclusion. |
603 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) | 603 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) |
604 return DefaultBehavior; | 604 return DefaultBehavior; |
605 | 605 |
606 if (ignoredReasons) | 606 if (ignoredReasons) |
607 ignoredReasons->append(IgnoredReason(AXNotVisible)); | 607 ignoredReasons->append(IgnoredReason(AXNotVisible)); |
608 return IgnoreObject; | 608 return IgnoreObject; |
609 } | 609 } |
610 | 610 |
611 return AXObject::defaultObjectInclusion(ignoredReasons); | 611 return AXObject::defaultObjectInclusion(ignoredReasons); |
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 result.unite(labelRect); | 2618 result.unite(labelRect); |
2619 } | 2619 } |
2620 } | 2620 } |
2621 } | 2621 } |
2622 } | 2622 } |
2623 | 2623 |
2624 return result; | 2624 return result; |
2625 } | 2625 } |
2626 | 2626 |
2627 } // namespace blink | 2627 } // namespace blink |
OLD | NEW |