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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored
Reasons) const | 562 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored
Reasons) const |
563 { | 563 { |
564 // The following cases can apply to any element that's a subclass of AXLayou
tObject. | 564 // The following cases can apply to any element that's a subclass of AXLayou
tObject. |
565 | 565 |
566 if (!m_layoutObject) { | 566 if (!m_layoutObject) { |
567 if (ignoredReasons) | 567 if (ignoredReasons) |
568 ignoredReasons->append(IgnoredReason(AXNotRendered)); | 568 ignoredReasons->append(IgnoredReason(AXNotRendered)); |
569 return IgnoreObject; | 569 return IgnoreObject; |
570 } | 570 } |
571 | 571 |
572 if (m_layoutObject->style()->visibility() != VISIBLE) { | 572 if (m_layoutObject->style()->visibility() != EVisibility::Visible) { |
573 // aria-hidden is meant to override visibility as the determinant in AX
hierarchy inclusion. | 573 // aria-hidden is meant to override visibility as the determinant in AX
hierarchy inclusion. |
574 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) | 574 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) |
575 return DefaultBehavior; | 575 return DefaultBehavior; |
576 | 576 |
577 if (ignoredReasons) | 577 if (ignoredReasons) |
578 ignoredReasons->append(IgnoredReason(AXNotVisible)); | 578 ignoredReasons->append(IgnoredReason(AXNotVisible)); |
579 return IgnoreObject; | 579 return IgnoreObject; |
580 } | 580 } |
581 | 581 |
582 return AXObject::defaultObjectInclusion(ignoredReasons); | 582 return AXObject::defaultObjectInclusion(ignoredReasons); |
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 result.unite(labelRect); | 2570 result.unite(labelRect); |
2571 } | 2571 } |
2572 } | 2572 } |
2573 } | 2573 } |
2574 } | 2574 } |
2575 | 2575 |
2576 return result; | 2576 return result; |
2577 } | 2577 } |
2578 | 2578 |
2579 } // namespace blink | 2579 } // namespace blink |
OLD | NEW |