| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 // aria-labelledby. So we need to explicitly call the style resolver to check | 724 // aria-labelledby. So we need to explicitly call the style resolver to check |
| 725 // whether it's invisible or display:none, rather than relying on the style | 725 // whether it's invisible or display:none, rather than relying on the style |
| 726 // cached in the LayoutObject. | 726 // cached in the LayoutObject. |
| 727 Document* document = getDocument(); | 727 Document* document = getDocument(); |
| 728 if (!document || !document->frame()) | 728 if (!document || !document->frame()) |
| 729 return false; | 729 return false; |
| 730 if (Node* node = getNode()) { | 730 if (Node* node = getNode()) { |
| 731 if (node->isConnected() && node->isElementNode()) { | 731 if (node->isConnected() && node->isElementNode()) { |
| 732 RefPtr<ComputedStyle> style = | 732 RefPtr<ComputedStyle> style = |
| 733 document->ensureStyleResolver().styleForElement(toElement(node)); | 733 document->ensureStyleResolver().styleForElement(toElement(node)); |
| 734 return style->display() == EDisplay::None || | 734 return style->display() == EDisplay::kNone || |
| 735 style->visibility() != EVisibility::kVisible; | 735 style->visibility() != EVisibility::kVisible; |
| 736 } | 736 } |
| 737 } | 737 } |
| 738 return false; | 738 return false; |
| 739 } | 739 } |
| 740 | 740 |
| 741 String AXObject::ariaTextAlternative(bool recursive, | 741 String AXObject::ariaTextAlternative(bool recursive, |
| 742 bool inAriaLabelledByTraversal, | 742 bool inAriaLabelledByTraversal, |
| 743 AXObjectSet& visited, | 743 AXObjectSet& visited, |
| 744 AXNameFrom& nameFrom, | 744 AXNameFrom& nameFrom, |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1762 } | 1762 } |
| 1763 | 1763 |
| 1764 DEFINE_TRACE(AXObject) { | 1764 DEFINE_TRACE(AXObject) { |
| 1765 visitor->trace(m_children); | 1765 visitor->trace(m_children); |
| 1766 visitor->trace(m_parent); | 1766 visitor->trace(m_parent); |
| 1767 visitor->trace(m_cachedLiveRegionRoot); | 1767 visitor->trace(m_cachedLiveRegionRoot); |
| 1768 visitor->trace(m_axObjectCache); | 1768 visitor->trace(m_axObjectCache); |
| 1769 } | 1769 } |
| 1770 | 1770 |
| 1771 } // namespace blink | 1771 } // namespace blink |
| OLD | NEW |