| 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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 AccessibilityExpanded expanded = isExpanded(); | 2015 AccessibilityExpanded expanded = isExpanded(); |
| 2016 if (!expanded) | 2016 if (!expanded) |
| 2017 return; | 2017 return; |
| 2018 | 2018 |
| 2019 if (roleValue() == RowRole || roleValue() == TreeItemRole) { | 2019 if (roleValue() == RowRole || roleValue() == TreeItemRole) { |
| 2020 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; | 2020 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; |
| 2021 if (expanded == ExpandedCollapsed) | 2021 if (expanded == ExpandedCollapsed) |
| 2022 notification = AXObjectCacheImpl::AXRowCollapsed; | 2022 notification = AXObjectCacheImpl::AXRowCollapsed; |
| 2023 | 2023 |
| 2024 axObjectCache().postNotification(this, notification); | 2024 axObjectCache().postNotification(this, notification); |
| 2025 } else { |
| 2026 axObjectCache().postNotification(this, AXObjectCacheImpl::AXExpandedChan
ged); |
| 2025 } | 2027 } |
| 2026 } | 2028 } |
| 2027 | 2029 |
| 2028 void AXLayoutObject::textChanged() | 2030 void AXLayoutObject::textChanged() |
| 2029 { | 2031 { |
| 2030 if (!m_layoutObject) | 2032 if (!m_layoutObject) |
| 2031 return; | 2033 return; |
| 2032 | 2034 |
| 2033 Settings* settings = getDocument()->settings(); | 2035 Settings* settings = getDocument()->settings(); |
| 2034 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) | 2036 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 if (label && label->layoutObject()) { | 2471 if (label && label->layoutObject()) { |
| 2470 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); | 2472 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); |
| 2471 result.unite(labelRect); | 2473 result.unite(labelRect); |
| 2472 } | 2474 } |
| 2473 } | 2475 } |
| 2474 | 2476 |
| 2475 return result; | 2477 return result; |
| 2476 } | 2478 } |
| 2477 | 2479 |
| 2478 } // namespace blink | 2480 } // namespace blink |
| OLD | NEW |